|
|||||
CS-100 In-Class Project: Digital Clock |
|||||
Download the form (Zip File) |
|||||
Properties of the Timer Control |
|||||
You should know the Name, Enabled and Inerval properties for the timer control. Name: use prefix tmr |
|||||
Code'' This program simulates a digital clock ' A timer control is used to modify the text property ' of a label setting it to the current time of day. ' ' The bult in function "TimeOfDay" is used to get the current time. ' Public Class frmClock ' This event procdure causes the time to displayed whenever the
End Sub ' This event procdure starts the timer and thus, the clock ticking.
End Sub ' This event procdure stops the timer.
End Sub ' This is the event procedure for the timer control. Each second this
End Sub Private Sub btnQuit_Click( Material Deleted ) Handles btnQuit.Click |