Click here to Skip to main content
16,005,114 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how can I link timers that if the one timer stops it starts the next timer?
Posted
Comments
Sergey Alexandrovich Kryukov 20-Mar-13 10:06am    
It makes no sense.
—SA

Makes no sense. The timer "ticks" periodically, did no know that? (Unless this is a notoriously inaccurate System.Windows.Forms.Timer; never use it for any periodically repeated action.)

In many cases, you rather need a separate thread with a loop and Sleep, which is way more straightforward.

—SA
 
Share this answer
 
In the timer tick event set the next timer to be "Enabled"
 
Share this answer
 
Use this code in timer tick event:
frsttimer.stop();
Scndtimer.start();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900