?
Solved

Pause process until sub-process completes

Posted on 2004-04-15
2
Medium Priority
?
403 Views
Last Modified: 2012-08-14
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

0
Comment
Question by:heartland
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Accepted Solution

by:
_TAD_ earned 300 total points
ID: 10835492


I think you want to use the Modal command.

I haven't used it at all in .Net (although I know it exists).


Dim f as new Form2()

f.Modal = true
f.Show()
0
 

Author Comment

by:heartland
ID: 10835577
Yes, it worked.  As a matter of fact, it is simple.

Dim f as new form2
f.showdialog()

Heartland
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question