Jordey (14 posts so far) | | Hi,This is a tutorial how to make a clock in VB6.Ok,lets begin.Start Vb6,Choose Standard EXE.Now you will see an empty form.Make three textboxes:1 for hour,1 for minutes and 1 for seconds.Empty them.Now insert a timer.Select the timer and set the Interval to something between 1 and 1000.Double-click on the timer now,and type in this code:
text1.Text = Hour(Now)
text2.Text = Minute(Now)
text3.Text = Second(Now)
Done!
|