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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wait until another Sub Finishes

Status
Not open for further replies.

estech25

Technical User
Jan 26, 2005
118
IR
I am having a rather lengthy block of code which takes long to run inside a library. I want to call this sub and then display a wait signal to the user to wait until it finishes. I use Threading to run the sub in a different thread. I call Thread.start, but as soon as I call Thread.join everything freezes on my current thread. How can I wait on this Sub to finish without my screen freezing?
 
Use events on the thread to inform the main thread where it is and how the progress is going.


Christiaan Baes
Belgium

My Blog
"In a system where you can define a factor as part of a third factor, you need another layer to check the main layer in case the second layer is not the base unit." - jrbarnett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top