In form load add the below code to initialize the progress bar ControlProgressBar1.Minimum = 0ProgressBar1.Maximum = 100ProgressBar1.Value = 0On double click of the timer event it will add the timer_tick event and add the progress bar code in timer eventProgressBar1.Value += 2 If ProgressBar1.Value >= 100 Then ProgressBar1.Value = 0 End IfPrivate Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.TickProgressBar1.Value += 2 If ProgressBar1.Value >= 100 Then ProgressBar1.Value = 0 End IfEnd Sub
If ProgressBar1.Value >= 100 ThenTimer1.Enable=False End If