OK, this might sound very basic, but I haven't found the right answer yet.
I have a checkbox which activate a while loop when checked. In this while loop it ask in every iteration for a selection of blocks.
When I uncheck the checkbox, it has to stop immediately. The problem is that its already in the next loop waiting for user input (blocks to be selected).
So I can uncheck but it will still ask for one more selection until it exit the While loop. I'm searching for something to break my getselection method.
I know I could just do a SendStringToExecute but I prefer to use proper VB.NET code. Or maybe there or other suggestions to make my program work?