![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2004
Posts: 9
Rep Power: 0
![]() |
I have no idea why this code won't work could you please help. Thanks
Private Sub Form_Load()
Label1.Caption = 100
Timer1.Enabled = True
End Sub
Private Sub Timer2Start()
Timer2.Enabled = True
Do
If Label1.Caption = 100 Then
Exit Do
End If
Loop
End Sub
Private Sub Timer1_Timer()
Label1.Caption = Label1.Caption - 1
If Label1.Caption = 0 Then
Timer1.Enabled = False
Timer2Start
End If
End Sub
Private Sub Timer2_Timer()
Label1.Caption = Label1.Caption + 1
End SubLast edited by skylinegtr; Jan 18th, 2005 at 8:02 PM. |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
The loop's taking up so many resources, Windows can't update the form. Make it:
Do
If Label1.Caption = 100 Then
Exit Do
End If
DoEvents
Loop |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Oct 2004
Posts: 9
Rep Power: 0
![]() |
thanks for your quick reply
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|