Timer Reset

  • Thread starter Thread starter Gianmaria I.
  • Start date Start date
G

Gianmaria I.

Hi,
i'm using a timer like this:
System.Timers.Timer myTimer= new System.Timers.Timer(60000);

in some conditions i want my timer to be reset... so if something happen i
know i want the timer to start counting again from zero...

simply reset to dont have the Elapsed event to be fired..

how can i do this??

regards.
 
Hi,


What if you call Stop /Start ?
or you could use Enabled too


cheers,
 
Hi,

AutoReset is not used for this, it's an indication if the timer event should
be risen more than once or not.


cheers,
 

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

Back
Top