Solved

Pause process until sub-process completes

Posted on 2004-04-15
2
395 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
2 Comments
 
LVL 22

Accepted Solution

by:
_TAD_ earned 100 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WPF - Tooltips for ComboBox items 5 33
Visual Studio editor? 1 38
Not showing page correctly 3 29
How to add <appSettings> to the webconfig file 2 20
Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now