5.2 How to stop an infinite loop?

In the previous section, I wrote a loop that is endless. When this code runs, it enters an infinite loop. The program will stop responding to any keyboard or mouse activities. When this happens, press control-break to pause the execution of the program.

As soon as the program pauses, the VB IDE will show you where it has paused. At this point, check the loop and see why it does not exit the loop.