Timer Component Overview (Windows Forms)
.NET Framework 2.0
The Windows Formsis a component that raises an event at regular intervals. This component is designed for a Windows Forms environment. If you need a timer that is suitable for a server environment, see .
The length of the intervals is defined by theproperty, whose value is in milliseconds. When the component is enabled, the event is raised every interval. This is where you would add code to be executed. For more information, see . The key methods of the Timer component are and , which turn the timer on and off. When the timer is switched off, it resets; there is no way to pause a Timer component.