Share via


BackColor Property [Outlook 2003 Forms Help]

Specifies the background color of the object.

Syntax

object.BackColor [= Long]

The BackColor property syntax has these parts:

Part Description
object Required. A valid object.
Long Optional. A value or constant that determines the background color of an object.

Settings

You can use any integer that represents a valid color. You can also specify a color by using the RGB function with red, green, and blue color components. The value of each color component is an integer that ranges from zero to 255. For example, you can specify teal blue as the integer value 4966415 or as red, green, and blue color components 15, 200, 75, as shown in the following example.

RGB(15,200,75)

Remarks

You can only see the background color of an object if the BackStyle property is set to 1.

Applies to | CheckBox control | ComboBox control | CommandButton control | Frame control | Image control | Label control | ListBox control | MultiPage control | OptionButton control | ScrollBar control | SpinButton control | TabStrip control | TextBox control | ToggleButton control