Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 C# winform 应用程序需要在其他应用程序以真正的全屏模式(不仅是最大化)运行期间将自身置于待机模式,例如视频游戏、视频电影、PowerPoint。
我需要一种方法来检测当前是否全屏显示其他应用程序。
是否有可能注册其他应用程序进入/退出全屏时触发的事件?
对于这两种需求,我会很感激有代码片段。
根据这个问题“全屏模式”并不特别,只需创建正确类型的窗口,操作系统就会将其视为全屏。一旦你知道了,你可以在这里看到如何检测这样的窗口。