PC Review


Reply
Thread Tools Rate Thread

detect shutdown of other application

 
 
=?Utf-8?B?Z2VvcmcgYW5kZXJzc29u?=
Guest
Posts: n/a
 
      25th Nov 2004
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
 
Reply With Quote
 
 
 
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      25th Nov 2004
<=?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
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect logoff/shutdown j Microsoft Outlook Program Addins 1 21st Jul 2009 03:42 PM
Detect Remote Shutdown Chris Johnson Microsoft VB .NET 4 18th Jan 2006 04:29 PM
Detect Shutdown from .NET Adnan Hebibovic Microsoft Dot NET 6 29th Mar 2005 03:38 AM
Detect logoff or shutdown Jerry Camel Microsoft VB .NET 1 14th May 2004 11:20 PM
How to Detect Improper Shutdown birju jani Windows XP Customization 0 16th Aug 2003 01:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:41 PM.