Link to home
Start Free TrialLog in
Avatar of heartland
heartland

asked on

Pause process until sub-process completes

Hi,

There are two processes in the form1:

 process 1
 process 2

the process 1 will call a sub that will show form2 and take user input.  The process 2 should pause while user inputs values and resume after the user closes the form2.  What is best way to do it?  I used to pass a variable from very bottom sub to top to start process 2.  This is not very elgant.  I am new to VB.net and never used threading or waithandle before.  Thanks in advance.

Heartland

ASKER CERTIFIED SOLUTION
Avatar of _TAD_
_TAD_

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of heartland
heartland

ASKER

Yes, it worked.  As a matter of fact, it is simple.

Dim f as new form2
f.showdialog()

Heartland