Share via


ListBox.BackColor Property

Outlook Forms Script Reference

Returns or sets a Long that specifies the background color of the object. Read/write.

Syntax

expression.BackColor

expression   A variable that represents a ListBox object.

Remarks

You can use any integer that represents a valid color. You can also specify a color by using the Visual Basic 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.

Visual Basic Scripting Edition
  RGB(15,200,75)

See Also