Hi
I want to run a piece of code on the timer tick event until the user clicks 'button 1', is this possible? and how can i do this?
Thanks
Printable View
Hi
I want to run a piece of code on the timer tick event until the user clicks 'button 1', is this possible? and how can i do this?
Thanks
Presumably the code you want to run is some form of loop?
If so create a module (or global) level boolean variable, set it to false, then every time round the loop check that the variable is still false. In the button's click event set the variable to true.
Why not just set the timer's enabled property to false in the button click?