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

  • Thread starter Thread starter Medo65
  • Start date Start date
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 .
 
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
 
Back
Top