-
Hi,
I've written a small application which uses a timer.
The timer function compares values every 10ms, for like 5 seconds.
The problem is that when running NT/Win2000, the timer runs correctly. When running Win98 however, the timer does not stop after 5 seconds, it ignores the .Enabled=false. Is there anything specific I should use or do in order to get it to work on all of the above platforms?
Thanks,
Dirk
-
try this:
Private mTimerEnabled as boolean
Private Sub Timer1_Timer()
If not mTimerEnabled then exit sub
' ...
' do stuff here
' ...
End Sub
when you disable the timer, use
Timer1.Enabled = false
mTimerEnabled = false
to enable it:
Timer1.Enabled = true
mTimerEnabled = true