I am just messing around in vb express 2008 and i decided to play with the progressbar control. I set up two labels and a timer to make the progressbar value go up then go down when it reaches its limit. it then repeats this. It works great except for the fact that the progressbar is slow to respond to increment and it jumps to the maximum value near the end of its increment cycle. I have the timer set to a 1 millisecond interval and this is my code,
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
If Label2.Text = "100" Then
number = number - 1
Label3.Text = number
ProgressBar1.Value = number
ProgressBar1.Update()
End If
If Label3.Text = "0" Then
number = number + 1
Label2.Text = number
ProgressBar1.Value = number
ProgressBar1.Update()
End If
End Sub