Hello ! Do you want a cool and
simply progress bar ?
Well here is an easy tutorial.
Pictures:
1.
2.
3.
Tutorial
1. Open
Visual Basic 2008
2. Make new Project and call it whatever you want. Progress bar etc.
3. Now you will need to add some stuff:
-
3 Buttons
-
1 Progress Bar
-
1 Timer
4. Add some cool colors that you want

5.

Fixed Single and
False Maximum box !
6. Now the coding. Just double click the buttons and the timer.
Timer Code:
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
ProgressBar1.Increment(1)
End Sub
Button 1 Code: [Start]
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Start()
MsgBox("You have started the progressbar")
End Sub
Button 2 Code: [Stop]
Code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer1.Stop()
MsgBox("You have stopped the progressbar")
End Sub
Button 3 Code: [Close]
Code:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Me.Hide()
End Sub
7. If you not happy with the design then redesign by your
own!
I hope you will enjoy the Progress Bar!
If you got some problem :
- Leave a comment on this post
- Send me a PM
Credits to:
- Mizzer2 [Me]