Share via


User Interface Colors

4/19/2010

When you design the user interface, consider that a device may use a theme other than the default theme and that in future releases of the operating system, the default theme may use a different color scheme. Selecting the wrong color for your UI could result in the application becoming unusable. For example, do not assume that the background of a window will be white.

Query the System Color Properties

All Windows Forms controls automatically adapt to the current theme. However, if you use GDI to draw text manually, query the system for the colors associated with various UI elements so that the application will look consistent with the operating system and remain usable with all themes.

Bb677128.f7b820cb-b29e-493f-8910-a2d5a1aabd38(en-us,MSDN.10).gif