PDA

View Full Version : Simple Clock In VB 6



[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!

Cool--
04-02-2007, 11:11 PM
nice tut its workin fine for me

Mr.OSH
24-02-2007, 12:34 AM
Good tutorial + rep.

Want to hide these adverts? Register an account for free!