Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preventing program from freezing a couple of sec

Status
Not open for further replies.

beier

Technical User
May 6, 2006
10
DK
I have a function started by clicking a button. It takes some time to run, however while running, the program freezes up, and doesn't update labels until it has reached the end.

Is there any way to prevent the program from freezing while running a function, or some way to have it update labels?
It is updating a progress bar, but everything else is frozen. Can't move the window either.
 
Try calling Application->ProcessMessages() periodically within your function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top