24 hour

Simple Clock in Visual Basic

Submitted by Yorkiebar on
Introduction: This tutorial is on how to create a simple clock in Visual Basic. Design: For this, we simply need a new Windows Form, with one label - call it; 'clockLbl'. You may center the label to the middle of the form in both x and y axis' and give it a large font size. We also need a timer, name this timer1. Set it's interval to 1000ms/1second and it's enabled state to 'True'. Form Load: On form load, we want to initiate the label with the current computer time.