How to insert a control displaying real time (clock) in a form !!

M

Medo65

Hello.
I want to put a control on a form that displays the real
time - or to be more precise - a clock, resembling that
in the system tray.
Is there any idea. Ideas without having to buy or
registre a control are MORE welcomed !!
Thanks .
 
F

fredg

Hello.
I want to put a control on a form that displays the real
time - or to be more precise - a clock, resembling that
in the system tray.
Is there any idea. Ideas without having to buy or
registre a control are MORE welcomed !!
Thanks .

Add an unbound control to your form
Set it's Format property to whatever Time format you wish.

Set the Form's Timer Interval event to 1000
Code the form's Timer event to:
[ControlName] = Time
 

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