Display Change Notification

Is there a way to find out if the computer monitor has been changed to another? I need to reset to display the default settings if a new one is connected.

+4
source share
1 answer
SystemEvents.DisplaySettingsChanged += new EventHandler(SystemEvents_DisplaySettingsChanged); 

You need to add a link to Microsoft.Win32;

+6
source

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


All Articles