Using the Timer Control

The Timer control allows you to execute event-handling code repeatedly in defined intervals. The code will be executed on the same thread that the Windows code is running in. If you need code to run in a thread outside of the Windows thread, then you should use the System.Threading namespace.

The Timer control fires by raising a Tick event. A Tick event is raised only when the Timer's Enabled property is set to true. You can stop a Timer control from firing by setting the Enabled property to false. The Timer control's Interval property defines the number of milliseconds between Tick events.

SHOP TALK: TRAPPING THE TAP-AND-HOLD EVENT

Pocket PC substitutes the tap-and-hold movement in place of the right mouse click. The ...

Get Microsoft® .NET Compact Framework Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.