Taskbar name won't change (vb.net)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • seraieis
    New Member
    • Apr 2008
    • 60

    #1

    Taskbar name won't change (vb.net)

    Hi all,

    I'm writing a simple stop watch program, and I've come across an issue. I want the name in the taskbar to show whatever the current count on the timer is.

    Private Sub Timer1_Tick(ByV al sender As Object, _
    ByVal e As System.EventArg s) Handles Timer1.Tick
    Me.Text = (Now.TimeOfDay - start).ToString
    End Sub

    This works only if I continue to click on the form itself. Otherwise, the taskbar name does not update.

    Any suggestions?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Add a me.Update() after the Me.Text call?

    Comment

    • seraieis
      New Member
      • Apr 2008
      • 60

      #3
      I tried that, but it didn't work. :(

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        How fast is your timer interval?
        I just did it and mine works fine?
        Code:
        DateTime start = DateTime.Now;
        private void timer1_Tick(object sender, EventArgs e)
        {
           this.Text=(DateTime.Now-start).ToString();
        }

        Comment

        Working...