Put a DOEVENTS inside your loop. To prevent slowing down too much your application, execute the DOEVENTS once every 10 or 100 loops.
HTH
>This might not be a new question but I hope someone would help it out. My program doesn't respond to mouse actions while it is in a "Do while" loop. I put some code in the "click" event of a command button and I expected that I can stop the loop by changing the loop condition (via the click event of the command button). I never made the program respond to the mouse and trigger the event to change the loop condition. (I can trap the keyboard by a inkey() function though.)
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement