DisabledBackColor, DisabledForeColor Properties

Applies To   See Also

Specifies the background and foreground colors for a disabled control. Available at design time and run time.

Syntax

Control.DisabledBackColor[ = nColor]

-or-

Control.DisabledBackColor = RGB(nRedValue, nGreenValue, nBlueValue)
Control.DisabledForeColor[ = nColor]

-or-

Control.DisabledForeColor = RGB(nRedValue, nGreenValue, nBlueValue)

Settings

nColor

Specifies a single number to represent the color.

nRedValue, nGreenValue, nBlueValue

Specifies three separate color intensities that compose the control's foreground color or background color; must be used with RGB( ) to consolidate the three color components into one number.

Remarks

The color you specify is dithered with gray.

Note   In the Properties window, you can double-click any of the color properties to display the Color dialog box. You can choose or define colors from this dialog box. The red, green, and blue intensities that correspond to the color you choose become the settings for these properties after you close the Color dialog box.