<=?Utf-8?B?Z2VvcmcgYW5kZXJzc29u?= <georg
(E-Mail Removed)>> 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 - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too