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?
Asked
Active
Viewed 9.2k times
5 Answers
132
System.Timer.Timer.Enabled
should work, when you call "Start" it sets Enabled to TRUE, "Stop" sets it to FALSE.

Ron Savage
- 10,923
- 4
- 26
- 35
-
will it check and work for all the running instances of `Timer`? also the one created at runtime or by creating a new object of Timer class, it would be great if you would help me. – Mohammed Sufian Mar 15 '16 at 17:48
-
1will this property check work with `Systems.Windows.Forms.Timer` or only with `System.Timer`? – Max Bender Jun 05 '18 at 20:36
14
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
- 122,218
- 32
- 205
- 338
-
1The remark about the behavior of AutoReset is wrong. From [MSDN](http://msdn.microsoft.com/en-us/library/system.timers.timer.autoreset%28v=vs.110%29.aspx): true if the Timer should raise the Elapsed event each time the interval elapses; false if it should raise the Elapsed event only once, after the first time the interval elapses. The default is true. – Kris Jul 25 '14 at 08:47