In this Lesson, we shall show you how to use the timer in Visual Basic 2010. The timer is used to manage events that are time-related. For example, you can use the timer to create a clock, a stopwatch, a dice, animation and more.
To create a clock, you need to use the Timer control that comes with Visual Basic 2010. The Timer control is a control object that is only used by the developer, it is invisible during runtime and it does not allow the user to interact with it.
First of all, start a new project in Visual Basic 2010 and select a new Windows Application. You can give the project any name you wish, we named it MyClock. Change the caption of the Form1 to MyClock in the properties window. Now add the Timer control to the form by dragging it from the control tool Box. Next, insert a label control into the form. Change the Font size of the label to 14 or any size you wish, and set the Font alignment to be the middle center. Lastly, you shall also set the Interval property of the Timer control to 1000, which reflects a one-second interval(1 unit is 1 millisecond).
To learn the details, we suggest you grab a copy of Visual Basic 2010 Made Easy
AUTHOR: DR. LIEW VOON KIONG
Visual Basic 2010 Made Easy is an eBook authored by the webmaster of our Visual Basic 2010 Tutorial, Dr.Liew. With more than 200 pages of contents, it complements our free online tutorial by providing a complete tutorial for beginners.
By reading this book, you can:
*Please wait for 10 seconds for PayPal to redirect you to E-book Download Page after ordering and making payment.
Mode of Delivery: Download
This site and the products and services offered on this site are not associated, affiliated, endorsed, or sponsored by Microsoft, nor have they been reviewed tested or certified by Microsoft.
If you require assistant and technical support, please contact:Admin