Application events for window focus, launch, and exit

G

g62msdn

Are there events which allow a program to monitor applications when they are
launched, exited, and switched-to?

Can you point me to some C# references or sample code for this?

Thank you.

[email protected]
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?ZzYybXNkbg==?=,
Are there events which allow a program to monitor applications when they are
launched, exited, and switched-to?

Can you point me to some C# references or sample code for this?
As far as I know, those events have to originate within the programs,
themselves. For example, Word has events that can fire when a window is
switched into, or the application is exited. Other than that, I suspect you'd
need to work with the Windows API.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
Top