Edit

Share via


Application.ColorMode Property

Definition

Gets the default color mode (dark mode) for the application.

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

Property Value

Attributes

Remarks

This is the SystemColorMode; which either has been set by SetColorMode(SystemColorMode) or its default value Classic. If it has been set to System, then the actual color mode is determined by the system settings (which can be retrieved by the static (shared in VB) SystemColorMode property.

Applies to