If I have an instance of a System.Timers.Timer that has a long interval - say 1 minute, how can I find out if it is started without waiting for the Tick?
+5
A:
System.Timer.Timer.Enabled should work, when you call "Start" it sets Enabled to TRUE, "Stop" sets it to FALSE.
Ron
Ron Savage
2008-09-29 20:51:45
ah, I was curious about hte difference, thanks
George Mauer
2008-09-29 20:54:27
+1
A:
The .Enabled property
http://msdn.microsoft.com/en-us/library/system.timers.timer.enabled.aspx
Bob King
2008-09-29 20:52:47
+1
A:
If Timer.Enabled is true, your timer is running.
Calling Timer.Start sets Enabled to true.
Calling Timer.Stop sets Enabled to false.
If Timer.AutoReset is true, then Enabled will automatically be set to false the first time the timer expires.
Joe
2008-09-29 20:52:47
hrm... why did I get a downvote on this as its the same answer as the others.
John Nolan
2008-09-30 11:18:39