Any way to detect when entire application loses focus?

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

Guest

Hi everyone,

Is there any way through a p/invoke or otherwise to detect when an
application entirely loses focus and something else pops up like let's say
you are using IE and then click start --> Contacts, the IE window is pushed
to the back.

If I were the IE program would I be able to tell when I've been pushed back
like that?

Thanks!
 
Hi Peter,

I should clarify a bit. Is there a way to know when my application loses
focus to another application. Wouldn't the deactivated event fire even when I
was switching between forms in my app?

So my question is how do I know when my app loses focus entirely instead of
just a single form? Is this possible?
 
Back
Top