-
Timers, timers, timers
-
Oh joy.
Let me explain what I've been battling with for easily the better part of a whole day.
I have a windows service that I want to wake up and process at a certain interval, so I dragged a timer control onto the designer and merrily set properties and compiled and when testing, nothing happens.
I noticed that the "elapsed" event was replaced with "tick", but I assumed that was a new .NET 2 change and thought it was the same kinda thing.
Anyways... After much annoying debugging, and failed debugging, I eventually went through an older existing project that I knew worked... and guess what:
System.Windows.Forms.Timer is NOT the same as System.Timers.Timer
Obviously there is no form in a windows service, so I was using the wrong timer control. (The System.Timers.Timer control was not enabled in my toolbox, so I just took the one that was there.)
What a mission.