Edit

Share via


Application.SystemColorMode Property

Definition

Gets the system color mode setting of the OS system environment.

public:
 static property System::Windows::Forms::SystemColorMode SystemColorMode { System::Windows::Forms::SystemColorMode get(); };
[System.Diagnostics.CodeAnalysis.Experimental("WFO5001", UrlFormat="https://aka.ms/winforms-warnings/{0}")]
public static System.Windows.Forms.SystemColorMode SystemColorMode { get; }
[<System.Diagnostics.CodeAnalysis.Experimental("WFO5001", UrlFormat="https://aka.ms/winforms-warnings/{0}")>]
static member SystemColorMode : System.Windows.Forms.SystemColorMode
Public Shared ReadOnly Property SystemColorMode As SystemColorMode

Property Value

Attributes

Remarks

The color setting is determined based on the operating system version and its system settings. It returns Dark if the dark mode is enabled in the system settings, Classic if the color mode equals the light, standard color setting.

SystemColorMode is supported on Windows 11 or later versions.

SystemColorModes is not supported if the Windows OS High Contrast Mode has been enabled in the system settings.

Applies to