11-18-2010, 11:30 PM
(11-18-2010, 02:38 PM)Xzotic Wrote: All you need is a timer. And in the Timer you go progressbar1.increment(1)
And the increment(?) is by how much it goes up and how fast it goes..
Then all you have to do is enable the timer when you want the progress bar to go.
What he means is, all your code is doing is...
ProgressBar1.Increment(2)
it looks like you took that code out of a splash screen.
do like Xzotic said...
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
ProgressBar1.Increment(2)
End Sub
then set the interval from the properties window.
so that you don't get errors, add this bit in.
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If Not ProgressBar1.Value = ProgressBar1.Maximum Then
ProgressBar1.Increment(2)
Else
Timer1.Enabled = False
End If
End Sub
I code at http://tech.reboot.pro