|
-
Apr 25th, 2010, 05:30 AM
#1
Thread Starter
Hyperactive Member
Run code until a control is clicked
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
-
Apr 25th, 2010, 05:35 AM
#2
Re: Run code until a control is clicked
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.
-
Apr 25th, 2010, 07:52 AM
#3
Re: Run code until a control is clicked
Why not just set the timer's enabled property to false in the button click?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|