Solved

How do I tell a process to watch for exit?  Process.WatchForExit = true does not work in Visual Studio VB.NET

Posted on 2008-06-25
1
853 Views
Last Modified: 2013-11-26
I have an application that opens another applicaton using Process.start() and when that process ends, I want my application to do something.  The Exited Event does not work and The WatchForExit = true does not exist contrary to the popup notes in visual studio 2008 if you hover your mouse over the exited event area.

Can someone help me?  Is this possible and if so, how do I put it in code?

1.  Start the Process
2. When the Process ends / closes  then do something
0
Comment
Question by:logoncom
1 Comment
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 21869368
have a look at "Wait for a launched process to end" from http://www.emoreau.com/Entries/Articles/2003/12/The-Process-component.aspx
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

821 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