Log in

View Full Version : Auto clock


MUHAIMEN
Aug 21, 2008, 09:35 AM
Is there any code for real time clock which updating minute to minute? :)

StaticFX
Aug 21, 2008, 09:45 AM
just to show you how to do this.

create a new form.
add a label to it
in the from properties, find Timer Interval and set it to 1000
now go to the code...

Private Sub Form_Timer()
Label0.Caption = Format(Time(), "hh:mm:ss")
End Sub

MUHAIMEN
Aug 21, 2008, 10:14 AM
Thanks for the reply but I tried it was static. Is there any other code?

ScottGem
Aug 21, 2008, 10:32 AM
That works for me. Did you make sure to set the Timer Interval property?