I created a usercontrol in c#, Leave and LostFocus are not fired if I switch to another program. How can I detect if the app loses focus?
Try your mainform's Deactivate event
1.4m articles
1.4m replys
5 comments
57.0k users