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.
Share
This SO thread might help you.