sorry I'm confusing you
VB Code:
Private Sub Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer.Tick Static counter As Integer = 0 If pBar.Value < 90 Then pBar.Value += 10 Else pBar.Value = 10 counter += 1 End If If counter = 7 Then Timer.Enabled = False counter = 0 End If End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer.Enabled = True End Sub
try that





Reply With Quote