• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 906
  • Last Modified:

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

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
logoncom
Asked:
logoncom
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now