|
-
Aug 18th, 2006, 05:25 AM
#1
Thread Starter
New Member
[ T I M E R C O N T R O L ! ] - help ??
hi!~ im doing this for school ...for my game.. and im trying to make my timer .. to count backwards (10, 9, 8, 7, 6,5,4,..) etc
it involves a command button and a timer control . ~ when i try to do it.. nothing happens.. please help me (im still a beginner >_<")
thank you~~
Private Sub CmdSolve_Click()
CountdownTimer.Interval = 1
CountdownTimer.Enabled = True
CountdownTimer = 1000
End Sub
Private Sub CountdownTimer_Timer()
Dim ElapsedTime As Integer
ElaspedTime = 5000
ElapsedTime = ElapsedTime - CountdownTimer.Interval
LblTimer.Caption = ElapsedTime
If ElapsedTime = 0 Then
MsgBox ("Your Time has expired. Thank you for playing.")
End If
End Sub
Private Sub Form_Load()
CountdownTimer.Enabled = False
End Sub
Last edited by KaraMelLow; Aug 18th, 2006 at 05:28 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|