PDA

Click to See Complete Forum and Search --> : exact time on a Timer


spandex44
Nov 28th, 1999, 12:48 AM
hi!
I wanted to know if there's code I can put into a timer (or anything else), that will always display the current time (minutes and seconds). I found a formula that works on my computer, but if I would run it on a 486, it would be much too slow. Any ideas?

------------------
Regards,
Alexander McAndrew
VB Zone
http://gsenterprise.server101.com

QWERTY
Nov 28th, 1999, 12:50 AM
Use Time Function

Example:

Private Sub Timer1_Timer()
Label1.Caption = Time
End Sub

(set Timer Interval between 1 and 1000)
------------------
Visual Basic Programmer (at least I want to be one)
------------------
PolComSoft
You will hear a lot about it.
Coming Soon - My web page

[This message has been edited by QWERTY (edited 11-28-1999).]

spandex44
Nov 28th, 1999, 12:53 AM
geez, that was easy. Now I feel stupid. Thanks!

------------------
Regards,
Alexander McAndrew
VB Zone
http://gsenterprise.server101.com