Make Clock
Posted by
Darki
Labels:
clock date time vb6 darki
This is a tutorial how to make a clock in Visual Basic 6.0 showing time & date. Open Vb6 and select STANDARD .EXE . Make 6 Text Boxes , 6 Labels , and 1 Timer , like me.Oke , now set the timer interval to 1000 (1 second) and write :
Private Sub Timer1_Timer()
Text1.Text = Hour(Now)
Text2.Text = Minute(Now)
Text3.Text = Second(Now)
Text4.Text = Day(Now)
Text5.Text = Month(Now)
Text6.Text = Year(Now)
End Sub
Thats all. Very easy ha? :P Test it now.! It works !
If u have any questions ,suggestions , if u find a bugs or anything else just comment.
Subscribe to:
Post Comments (Atom)
Post a Comment