Creates a Timer control.
public Timer()
public Timer( IContainer container )
container
The Container object that holds the Timer.
Creates an instance of the Timer control. In the second version of this constructor, specifying a container for the Timer control causes the control to be disposed of when the control's container is disposed of.
Note If the Timer control's enabled property is set to true, the Timer control will not be released during garbage collection. Always pass a container object into the Timer control so that the container can dispose of the Timer control properly.