|
-
Jul 18th, 2005, 09:36 AM
#1
[RESOLVED] TIME - n00b ques
hi all!!
i just wanted to ask how to display the clock in the project........ i know to use
but it will display only the instance of time (the time when i will press F5 or run the code).......i want it to keep ticking like the one in the system tray of my computer.
plz help....thnx
-
Jul 18th, 2005, 09:38 AM
#2
Re: TIME - n00b ques
i'm pretty sure you would have to use a timer to refresh it every second
-
Jul 18th, 2005, 09:47 AM
#3
Re: TIME - n00b ques
but sorry i do not know how to refresh any control??? isn't there any in-built (within Time func) to keep it updating automatically??
-
Jul 18th, 2005, 10:01 AM
#4
Re: TIME - n00b ques
ok i got it.......use a timer control and set its interval to 500 n use this:
VB Code:
Private Sub tmrClock_Timer()
If lblClock.Caption <> Time Then
lblClock.Caption = Time
End If
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|