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.

Possible?

nascar_3Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TorusCommented:
Add the statement DOEVENTS inside the DO UNTIL LOOP and you will get what you want
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nascar_3Author Commented:
Thank You!
It works now!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.