Professional Documents
Culture Documents
Progress Bar
Progress Bar
Hi all!
Today I am going to make another simple tutorial about how to make a progress bar in
VB6.
First you must include some components. Go to Project – Components – (in the list choose)
Microsoft Windows Common Controls 5.0.
Code:
Private Sub Form_Load()
ProgressBar1.Value = ProgressBar1.Min
End Sub
Code:
Private Sub Timer1_Timer()
ProgressBar1.Value = ProgressBar1.Value + 10
If ProgressBar1.Value = 50 Then
ProgressBar1.Value = ProgressBar1 + 50
If ProgressBar1.Value >= ProgressBar1.Max Then
Timer1.Enabled = False
End If
End If
End Sub
You probably understand this code. I wanted to make the progressbar faster from the
middle of it.
Double click on the button (its name has been changed into “close”) and write:
Code:
Private Sub Command1_Click()
End
End Sub
By MathX
Enjoy…