in reply to Do While, While

Just like in good old VB3, you can call DoEvents on a regular interval to let the GUI do its event processing. See the UserGuide FAQ for more info, under the title Why does my window seem to freeze when my program is in a loop?