You want your code to react to a Windows system event, such as a modification of system or desktop settings.
Add an event handler to one of the shared events provided by the Microsoft.Win32.SystemEvents class.
The SystemEvents class provides references to several global system events, including:
DisplaySettingsChanged. occurs when the display settings (for example, screen resolution) are changed.
InstalledFontsChanged. occurs when the user adds fonts to or removes fonts from the system.
LowMemory. occurs if the system is running out of available RAM.
PaletteChanged. occurs when the user switches to an application that uses a different 256-color palette. This event occurs only in 256- color mode. ...