Interrupt Do While Loop
Hi All,
Does anyone know how to interrupt a Do While Loop?
I have a very simple bit of code that Loops though the items in a ListBox so long as a boolean (blnPaused) = False. There is a Button on the Form that sets the boolean to True but I can't figure out how to get the Click Event to work when the Do While Loop is running.
Any help would be greatly appreciated.
Thanks,
Chris (the Progress Bar is still driving me nuts!).
Chris147
Junior Poster in Training
58 posts since Jun 2007
Reputation Points: 10
Solved Threads: 4
Okay, I think I can't scratch this one - it just doesn't seem possible...
Thanks for looking,
Chris.
Chris147
Junior Poster in Training
58 posts since Jun 2007
Reputation Points: 10
Solved Threads: 4
Like all the best solutions - simple when you know how. It's the knowing how beforehand...
Thank you waynespangler!
Chris147
Junior Poster in Training
58 posts since Jun 2007
Reputation Points: 10
Solved Threads: 4