PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework
detect shutdown of other application
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework
detect shutdown of other application
![]() |
detect shutdown of other application |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
hi
i have a little application that is used to start a specific application (for example Word). my application is now supposed to run all the time the other application is running. as soon as the other application is closed by the user, my little application should also shutdown... so, is there a way, that my application 'listens' when the other application is closed? tx for any help georg |
|
|
|
#2 |
|
Guest
Posts: n/a
|
<=?Utf-8?B?Z2VvcmcgYW5kZXJzc29u?= <georg
andersson@discussions.microsoft.com>> wrote: > i have a little application that is used to start a specific application > (for example Word). my application is now supposed to run all the time the > other application is running. as soon as the other application is closed by > the user, my little application should also shutdown... > > so, is there a way, that my application 'listens' when the other application > is closed? You could have one thread which calls Process.WaitForExit, and then shuts the rest of the applicaiton down when that call returns. -- Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

