I would like to pause execution of a script while waiting for another thread to complete. I can't use threading.thread.sleep(xxx
) because it sows the script down. What I'm looking for is something that pauses the script the same way a messagebox does:
While Encoder.RunState <> WMENC_ENCODER_STATE.WMENC_ENCODER_STOPPED
Me.ToolStripStatusLabel1.Text = "...Waiting for response"