Timer

B

BobAchgill

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
 
G

Guest

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top