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
840 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 69

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

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

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

914 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

20 Experts available now in Live!

Get 1:1 Help Now