detect shutdown of other application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
<=?Utf-8?B?Z2VvcmcgYW5kZXJzc29u?= <georg
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.
 
Back
Top