Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Pause process until sub-process completes

Posted on 2004-04-15
2
Medium Priority
?
404 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

609 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