Quote:
|
Originally Posted by Ooble
In the form's Close event, call the timer's Dispose function:
|
This actually doesn't quite work, there's situations where the close event occurs before all of the timers are fully initialized. (.NET is an odd language timingwise)
It was suggested elsewhere that the timer class be overrided and have a method that watches the form beneath it and destroys when in destroys.
The other option would be to add a Form.Closed() event and close it there.
-MBirchmeier