BackColor Inheritance

Back Color Inheritance - Controls

A control's background color at runtime depends on several factors:

Most controls, by default, are rendered so that any entry capable areas have a white backcolor, and non-entry capable areas are effectively transparent (there are some exceptions to this, notably the command button and container objects like the DataGrid, SmartNav and Tab controls).

For those controls that have a BackStyle property, this property will default to BackTransparent, and the control takes its background color from its parent object (usually the current form but this may also be another control such as a tab, smartnav or panel control. The following factors however, automatically change the default BackStyle property of a control to BackOpaque, which means the control will render with a solid background color (these items are evaluated in order):

A control's BackColor is then determined by:

TIP:

Manually inserted controls behave as though they are host Green-on-Black (non-reverse) field, therefore they will use the corresponding graphical display settings mapped to these host colors.

Back Color Inheritance - Forms

The active runtime form derives its back color in the following manner:

See Also

Display Settings | Color Settings


© 2004-2021 looksoftware. All rights reserved.