c# - How to detect application activation -


i need perform action when application receives focus.

i've tried hooking both gotfocus- , enter-events, trigger when focus changes within application.

scenario application detects problem must resolved elsewhere, , check again when user goes application.

i try overriding form.onactivated (or handling form.activated event) in application form.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -