0

I seem to have a problem I am trying to detect when my form loses focus but it has a COM interop based user control on it to display a web cam feed. This is causing the loses and gained focus events to not always fire. Is there a way to detect that the application has lost focus, perhaps through a windows api call.

PeteT
  • 18,754
  • 26
  • 95
  • 132

1 Answers1

0

This SO thread might help you.

Community
  • 1
  • 1
JP Alioto
  • 44,864
  • 6
  • 88
  • 112
  • I got the handles to all my forms and used them in my Activated and Deactivaterd event handlers on the forms. This allowed me to detect none of the applications forms are active. – PeteT Jun 04 '09 at 07:57