Are there any ways on .NET to detect if a monitor with a VGA plug is still connected?

That's all, I want to know if someone turns off the monitor and takes a few actions, any idea? Thanks you

+3
source share
1 answer

I haven’t tried it myself, but I think you can listen to WM_DEVICECHANGE and check for changes to the System.Windows.Forms.Screen.AllScreens collection.

0
source

Source: https://habr.com/ru/post/1745364/


All Articles