Click here to Skip to main content
15,911,139 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I have a test program that creates a Process class, sets the .Exited event handler to the p1.exited() method.

I set the FileName to iexplore.exe. I call Start() on the object. When I close Windows Explorer, the p1.exited() method is called.

When I set the FileName to word.lnk, it never hits the exited() method.

When I set the FileName to the actual .exe, the exited() method is hit.

I was initially going to post this as a question, but while formatting the question I came up with the solution.

So, in case someone else has this problem, I've also solved it.
Posted

1 solution

I actually answered my own question, but thought I'd post it anyway. ;)
 
Share this answer
 
Comments
#realJSOP 9-Jun-10 15:03pm    
You could have just not posted it...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900