clock on form

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
 
F

fredg

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")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top