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.


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.