|
-
October 7th, 1999, 01:33 PM
#1
How to STOP a Timer?
Any ideas? Have tried Timer1.Enabled = False but it doesn't seem to work.
-
October 8th, 1999, 09:49 AM
#2
Re: How to STOP a Timer?
Hi:
I believe that your idea is OK (Timer1.Enabled = False).
I have tested the following program and work fine.
Dim cont as Long
private Sub Form_Load()
Timer1.Interval = 10
End Sub
private Sub Start_Timer_Click()
Timer1.Enabled = true
End Sub
private Sub Stop_Timer_Click()
Timer1.Enabled = false
End Sub
private Sub Timer1_Timer()
cont = cont + 1
Text1.Text = cont
End Sub
Good luck. Bye..
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
|