clock on form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

How do you place or set up a running clock on a form.Do
you use a command buttom or label and what would be the
properties setting?I have tried to use a label and set a
timer with the on event but i am doing something wrong.
Thanks
 
Hello,

How do you place or set up a running clock on a form.Do
you use a command buttom or label and what would be the
properties setting?I have tried to use a label and set a
timer with the on event but i am doing something wrong.
Thanks

You can use a label, but for me an unbound text control works as well.
Add an Unbound text control to your form.
Set it's Format property to a hh:nn:ss
Name this control "ShowTime"

Set the Form's Timer Interval to 1000

Set the Form's Timer event to:
[ShowTime] = Time

If you do use a label, then use:
LabelName.Caption = Format(Time,"hh:nn:ss")
 
Back
Top