In Vb can anyone help with how to create a form that has a clock in it. So I can use it to tell the time.
Do I need to create a thread when the form loads ?
Or is there a clock obect with a tick event that I can use ?
Is this the right approach ?
Drag a label and a Timer onto your form, and double click the form itself. Make sure you start the timer in the Constructor of the form, as seen in line 6. Then, in the Tick event of the timer, update the label.Text property to the current time, as seen
in line 11.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.