M
mikeachamberlain
Hello.
Why is there no Reset() method on the windows forms timer? Calling
Start() then Stop() only disables the raising of events for this
period. It doesn't reset the timer back to 0. For instance, I have a
timer that elapses every 30 seconds, let it run for 10 seconds, stop it
for 10 seconds, then start it again, the next is event is raised in
another 10 seconds, instead of 30 seconds as I'd expect it to be.
I know I can work around it, which involes adding a DateTime variable
to my page, setting it, and using a timer to check it against the
current time. However, this is pretty annoying.
Why no Reset() method?
Mike
Why is there no Reset() method on the windows forms timer? Calling
Start() then Stop() only disables the raising of events for this
period. It doesn't reset the timer back to 0. For instance, I have a
timer that elapses every 30 seconds, let it run for 10 seconds, stop it
for 10 seconds, then start it again, the next is event is raised in
another 10 seconds, instead of 30 seconds as I'd expect it to be.
I know I can work around it, which involes adding a DateTime variable
to my page, setting it, and using a timer to check it against the
current time. However, this is pretty annoying.
Why no Reset() method?
Mike