[Chris]
27-01-2007, 09:50 PM
Ok, this tutorial will teach you step by step, how to make a digital clock in VB (visual basic) 6!
ok so start off and create a simple standard exe
http://img50.imageshack.us/img50/6567/vb1yr6.png
Now you should have this
http://img256.imageshack.us/img256/4269/vb2gi0.png
next click the Label Button [look in screenshot] and draw a box [look in screenshot]
http://img245.imageshack.us/img245/3757/vb3fy8.png
now double click on the "box" you have made to get this up, Delete everything and paste this into the box
Private Sub Timer1_Timer()
Label1.Caption = Time
End Sub
http://img245.imageshack.us/img245/8306/vb4ss3.png
Now close that and make a TIMER [ image ]
http://img50.imageshack.us/img50/1236/vb5bp5.png
place this anywhere, not go to the right side (click on timer first) and change the setting to this
http://img245.imageshack.us/img245/498/vb6bu2.png
and now click play!
ok so start off and create a simple standard exe
http://img50.imageshack.us/img50/6567/vb1yr6.png
Now you should have this
http://img256.imageshack.us/img256/4269/vb2gi0.png
next click the Label Button [look in screenshot] and draw a box [look in screenshot]
http://img245.imageshack.us/img245/3757/vb3fy8.png
now double click on the "box" you have made to get this up, Delete everything and paste this into the box
Private Sub Timer1_Timer()
Label1.Caption = Time
End Sub
http://img245.imageshack.us/img245/8306/vb4ss3.png
Now close that and make a TIMER [ image ]
http://img50.imageshack.us/img50/1236/vb5bp5.png
place this anywhere, not go to the right side (click on timer first) and change the setting to this
http://img245.imageshack.us/img245/498/vb6bu2.png
and now click play!