Export (0) Print
Expand All
Expand Minimize

SelectedBackColor, SelectedForeColor Properties

Visual Studio .NET 2003

Specifies the background or foreground color for the selected text. Available at design time and run time.

Control.SelectedBackColor[ = nColor]

-Or-

Control.SelectedBackColor = RGB(nRedValue, nGreenValue, nBlueValue)
Control.SelectedForeColor[ = nColor]

-Or-

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

Property Values

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.

See Also

BackColor, ForeColor Properties | RGB( ) | SelectedItemBackColor Property | SelectedItemForeColor Property

Applies To: ComboBox | EditBox | Spinner | TextBox

Show:
© 2014 Microsoft