• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

App form "frozen" during Loop

I've got a single form app that does some basic i/o search & replace type stuff on text files using a DO UNTIL loop. The program runs fine and performs perfectly for me.

The problem I've run into is that when the DO UNTIL loop is doing it's thing, the form cannot be moved by dragging the title bar, or minimized with the minimize button. If you switch to another open app, or start a new window, my VB app will move to the background, but Will not come to the Top when you click on it's task bar button. Not until the DO UNTIL event has completed it's work. Then it returns to normal.

Since I run this on large text files and sometimes it takes several minutes to complete, I want to be able to move the form, or switch away from it and be able to switch back to it at any time, whether its still running in the DO UNTIL loop or not.


1 Solution
Add the statement DOEVENTS inside the DO UNTIL LOOP and you will get what you want
nascar_3Author Commented:
Thank You!
It works now!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now