Is there a way to kill or stop a timer once it is
started? Or is there another better way to preempt a
timed process before it times out?
I have tried these combinations but timer1 just keeps on
ticking till the scheduled Tick mark.
1)
timer1.stop
2)
timer1.enabled = false
3)
timer1.stop
timer1.enabled = false
timer1.interval = 01
timer1.enabled = true
Thanks!
Bob
Rulin Hong - 27 Oct 2004 21:45 GMT
There are three timers in .NET.
Seems you use System.Windows.Forms.Timer.
System.Timers.Timer will meet your requirement (Timer.AutoReset Property to
False)
> Is there a way to kill or stop a timer once it is
> started? Or is there another better way to preempt a
[quoted text clipped - 18 lines]
>
> Bob