How to detect when an application loses focus?

后端 未结 2 1495
难免孤独
难免孤独 2020-12-11 04:34

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?

2条回答
提交回复
热议问题