Get default Windows System Colors in .NET Get default Windows System Colors in .NET windows windows

Get default Windows System Colors in .NET


Yes. In fact, there is an entire class dedicated to this:

The SystemColors class.

...or for WPF (thanks @ORMapper), The System.Windows.SystemColors class.


There is a System Color Class out, which will provide you the Colors.

For WinForms use:

System.Drawing.SystemColors

For WPF use:

System.Windows.SystemColors