Navi
09-10-2003, 07:54 AM
I am trying to make a progress bar which is filled up after 4 seconds then goes away... what am i doing wrong?
it gives an error now, Invalid Property Value and it points to "proBar1.Value = proBar1.Max - timeloop"
help appreciated
Private Sub Form_Load()
' Progress Bar specifications
proBar1.Min = 0 ' Set minimum value
proBar1.Max = 100 ' Set maximum value
proBar1.Value = 0
'Timer settings for progress bar
Timer1.Enabled = True
Timer1.Interval = 1000 ' 1 second
' set timeloop
Dim timeloop
timeloop = 100
End Sub
Private Sub Timer1_Timer()
timeloop = timeloop - 25
proBar1.Value = proBar1.Max - timeloop
If timeloop = 0 Then
Unload Me
End If
End Sub
it gives an error now, Invalid Property Value and it points to "proBar1.Value = proBar1.Max - timeloop"
help appreciated
Private Sub Form_Load()
' Progress Bar specifications
proBar1.Min = 0 ' Set minimum value
proBar1.Max = 100 ' Set maximum value
proBar1.Value = 0
'Timer settings for progress bar
Timer1.Enabled = True
Timer1.Interval = 1000 ' 1 second
' set timeloop
Dim timeloop
timeloop = 100
End Sub
Private Sub Timer1_Timer()
timeloop = timeloop - 25
proBar1.Value = proBar1.Max - timeloop
If timeloop = 0 Then
Unload Me
End If
End Sub