Application.ColorMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.