Training
Module
Create and Manage Events - Training
Discover how events facilitate communication between objects in C#, and how their integration with delegates creates robust, decoupled code.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Windows Forms Timer is 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 Introduction to Server-Based Timers.
The length of the intervals is defined by the Interval property, whose value is in milliseconds. When the component is enabled, the Tick event is raised every interval. This is where you would add code to be executed. For more information, see How to: Run Procedures at Set Intervals with the Windows Forms Timer Component. The key methods of the Timer component are Start and Stop, which turn the timer on and off. When the timer is switched off, it resets; there is no way to pause a Timer component.
.NET Desktop feedback feedback
.NET Desktop feedback is an open source project. Select a link to provide feedback:
Training
Module
Create and Manage Events - Training
Discover how events facilitate communication between objects in C#, and how their integration with delegates creates robust, decoupled code.