Question Timer How to set for a specific time?

raysefo

Well-known member
Joined
Jul 21, 2010
Messages
207
Programming Experience
Beginner
Hi,

I wonder is there a way to set a timer for a specific time interval? Lets say everyday between 23:00 and 23:10.

Best Regards.
 
Not that I know of, you could use 2 timers, have 1 running every second checking for 23:00 and when it's that time, stop that timer and start the other one. When the 2nd one notices it's 23:10 or later, stop it and re-start the first one.

When the app exit's, in the FormClosing event, be sure to stop both.
 
Have you started the timer?
Ie called it's Start() method or set it's Enabled property to True.
 
Back
Top