Click here to Skip to main content
15,888,065 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
in a win form, i have used a timer control in order to check DB status say every 5 min, but in the same form a grid is available with buttons to do some process

here in above scenario, the 2nd said process[button click] is more important than the first one.
so i don' t want at any situation the 2nd said process[button click] should get disturbed by timer action or trigger.

How to avoid this conflict
Posted

1 solution

So, in the button click event handler, stop the timer. Reset it, and start it again when you have finished the Click event.
 
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