请问整个软件,失去焦点,转到其他软件去了以后,怎让获取这个事件,或者属性 是整个软件。
我需要在获取到这个软件失去焦点后,我隐藏一个悬浮框。
Hi 彭123,
请尝试使用application.deactivated事件,该事件仅在用户切换到其他应用程序时激发。
Application.Deactivated Event
: 当应用程序停止作为前台应用程序时发生。
Best regards
Yong Lu
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.