Link to home
Start Free TrialLog in
Avatar of cheezy102
cheezy102

asked on

Count Down Accurate Timer

I need a accurate timer that can count down from 1 hour to nothing then display a msgbox but I have a picture of each number because i couldn't find an appropriate font
Avatar of sazhagianambi
sazhagianambi

Hi,

Delare One Variable i
Place One Timer.

Set Interval as 60,000(60 Sec ie 1 min)

Private Sub Timer1_Timer()
   i = i + 1
   if i=60 then 'One Hour Reached
     'Place Your Code here
   end if
End Sub

Regards,
Nambi
ASKER CERTIFIED SOLUTION
Avatar of Cimperiali
Cimperiali
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ok, both of those are ok, however I would just like to add that setting the inteval to 1000 is very close to one second, but it is not exactly the same.  When you get in to the area of one hour, your time may be inaccurate to a degree that you are not satisfied with.  However, it may be fine for your purposes.  
To Jacamar:
---------------------------------------
Using settimer, you can choose the delay. You could choose
even 1 hour, if you like
(simply multiply milliseconds = 1 h = 1000* 60*60= 3600000)
as it is a long value, it can hold 3.600.000...
cheers
Cesare I.
ok, i know  you can do that........however, those timers are not exact time.  Try it.  Compare it to your computer's time.  The timer in VB runs about 10 seconds per hour slower than the timer on your machine.
Hello all experts ,
   Can u please pay attection to the query related to TIMER control

https://www.experts-exchange.com/questions/20559986/Timer-control-Help-please.html

Avatar of cheezy102

ASKER

Thanx a lot for that mate, It's quite complicated but I think i'll get it sooner or later. Nice one