SystemEvents.DisplaySettingsChanging Event

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Occurs when the display settings are changing.

Namespace:   Microsoft.Win32
Assembly:  System (in System.dll)

public static event EventHandler DisplaySettingsChanging

Exception Condition
InvalidOperationException

System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications.

ExternalException

The attempt to create a system events window thread did not succeed.

System_CAPS_cautionCaution

Because this is a static event, you must detach your event handlers when your application is disposed, or memory leaks will result.

.NET Framework
Available since 2.0
Return to top
Show: