SelectedItemBackColor, SelectedItemForeColor Properties

Applies To   See Also

Specifies the background or foreground color for the selected item in a combo box or list box. Available at design time and run time.

Syntax

Control.SelectedItemBackColor[ = nColor]

-or-

Control.SelectedItemBackColor RGB(nRedValue, nGreenValue, nBlueValue)

Control.SelectedItemForeColor[ = nColor]

-or-

Control.SelectedItemForeColor RGB(nRedValue, nGreenValue, nBlueValue)

Settings

nColor

Specifies a single number to represent the color.

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.

For more information, see the color table in the BackColor, ForeColor Properties topic.