Solved

Pause process until sub-process completes

Posted on 2004-04-15
2
394 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

746 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

11 Experts available now in Live!

Get 1:1 Help Now