Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
2.00/5 (3 votes)
See more:
I want play (timer1.enabled = true) ........ after 2minutes (timer1.enabled = false) Automatic

please help ?????
Posted
Comments
Sergey Alexandrovich Kryukov 17-Oct-13 12:04pm    
Not enough information, by far. To start with, if you mention "Timer" the question is: which one? Full type name, please. And what is your application type, your goal?
—SA
ridoy 17-Oct-13 15:37pm    
Possibly you have some answers here:http://social.msdn.microsoft.com/Forums/en-US/0e01668d-2abf-4fd6-82ae-27ce208e6c9d/how-to-run-timer-and-after-2-minutes-timer-stop-automatic-?forum=vbgeneral ??
Sraj Muneer 19-Oct-13 2:57am    
thank you ridoy
ridoy 19-Oct-13 4:03am    
welcome,will be glad if that help you.

1 solution

That should be trivial:

- If the 2 minutes are the Timer interval, then just deactivate it when its own event get triggered.
- If the timer1 has a time-limit other than 2 minutes, then start a timer2 in the very same moment and deactivate timer1 when timer2 gets trigered.

Try it on your own and (if you get stuck or have problems) then use the "improve question" widget to show the code you are trying. Then we can correct / explain you the error. Giving you a "ready-to-go" solution won't help you to learn. And learning is the main target of Codeproject.
 
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