How to find out if a Timer is running?

George Mauer picture George Mauer · Sep 29, 2008 · Viewed 71.3k times · Source

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?

Answer

Ron Savage picture Ron Savage · Sep 29, 2008

System.Timer.Timer.Enabled should work, when you call "Start" it sets Enabled to TRUE, "Stop" sets it to FALSE.