11-18-2010, 11:09 AM
Code:
Dim i As Integer
Private Sub Form_Load()
i = 0
Timer1.Enabled = True
Timer1.Interval = 20
End Sub
Private Sub Timer1_Timer()
ProgressBar1.Value = i / 50 * 100
i = i + 1
If i > 50 Then
Timer1.Enabled = False
Unload Me
Form1.Show
End If
End Sub
Taken from:
http://www.vbforums.com/showthread.php?t=421073
All credits go to their creators.
Does anyone else have a better code?
I would like to use it.