Freigeben über


DisabledBackColor, DisabledForeColor Properties

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

Control.DisabledBackColor[ = nColor]

-Or-

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

-Or-

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

Property Values

  • 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.

Note   The DisabledBackColor property does not apply to CommandButton controls.

See Also

BackColor, ForeColor Properties | Colors Overview

Applies To: CheckBox | ComboBox | CommandButton | EditBox | Label | ListBox | OptionButton | Spinner | TextBox