Clock

antonellac

Registered User.
Local time
Today, 06:20
Joined
Aug 15, 2004
Messages
15
How can I make the clock on a form move - it stops the second I enter in the form. see attachment:eek:
 

Attachments

  • image1.JPG
    image1.JPG
    45.3 KB · Views: 187
Set the form's TimerInterval to 1,000 and then, in the Timer event, put the following code:

Code:
Me.MyLabel.Caption = Now

Where MyLabel is the name of your label.



I'd question the wisdom of putting a clock on your form because:
  1. It will slow some processes down due to the constant update via the Timer event;
  2. If you look at the bottome right of your screenshot there's already a clock displaying the current time. ;)
 
The problem is that it does not show the date - one has to stay clicking etc. so for the convenience of the user it is wise to do so. Many thanks for your kind reply.

Killer.
 

Users who are viewing this thread

Back
Top Bottom