ItemBackColor, ItemForeColor Properties
Specifies the background or foreground color used to display the text of items in a ComboBox or ListBox control. Available at design time and run time.
Control.ItemBackColor[ = nColor]
-or-
Control.ItemBackColor = RGB(nRedValue, nGreenValue,
nBlueValue)Control.ItemForeColor[ = nColor]
-or-
Control.ItemForColor = RGB(nRedValue, nGreenValue, nBlueValue)
Property Values
nColor
Specifies an integer that represents the color of the text.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.