my C# winform needs to detect when other applications enter/exit/run-in TRUE fullscreen, prefer by events

笑着哭i 提交于 2019-12-04 19:31:37

问题


my C# winform application needs put itself in standby mode during time other application runs in true fullscreen mode (not only maximized), like video games, video movies, powerpoint.

I need a method to detect if currently there is other application in fullscreen.

Is there a possibility to register to events which will fire when other application enters/exits fullscreen?

for both needs, I'll appreciate to have code snippets.


回答1:


According to this question "full screen mode" is not that special, just create the right type of window and the OS will treat it as full screen. Once you know that, you can see here how to detect such windows.



来源:https://stackoverflow.com/questions/3686311/my-c-sharp-winform-needs-to-detect-when-other-applications-enter-exit-run-in-tru

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!