How to reset a timer in C#?

I always do …

myTimer.Stop();
myTimer.Start();

… is that a hack? 🙂

Per comment, on Threading.Timer, it’s the Change method …

dueTime Type: System.Int32 The
amount of time to delay before the
invoking the callback method specified
when the Timer was constructed, in
milliseconds. Specify
Timeout.Infinite to prevent the
timer from restarting. Specify zero
(0) to restart the timer immediately.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)