Creating Timers
All the controls you used in Hour 7, “Working with the Traditional Controls,” had in common the fact that the user can interact with them. Not all controls have this capability—or restriction, depending on how you look at it. Some controls are designed for use only by the developer. One such control is the Open File Dialog control you used in your Picture Viewer application in Hour 1, “Jumping in with Both Feet: A Visual C# .NET Programming Tour.” Another control that is invisible at runtime is the Timer control. The Timer control's sole purpose is to trigger an event at a specified interval of time.
Create a new Windows Application titled Timer Example. Change the name of the default form to fclsTimerExample and then set its ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access