Sets the background color of cells in the Grid Control and the background color of the text area in ListBox and ComboBox Controls.
Syntax
object.BackColor [= OLE_COLOR]
Parameters
The BackColor property syntax has these parts:
Part |
Description |
object |
An object expression that evaluates to an object in the Applies To list. |
OLE COLOR |
The value of the color you select from the displayed color palette; for example: &H0000FF00& |
Remarks
In a Grid Control, this property sets the background color each cell in the grid. To set:
- The background color of the column headings and the column for the current row pointer, use the BackColorFixed property.
- To set the background color of the portion of the control not occupied by the grid, use the BackColorBackGround property.
- To set the color of the grid lines, use the GridColor property.
- To set the color of the cell text, use the ForeColor property.
- To set the color of the column headings, use the ForeColorFixed property.
See Also
DblClick (Area as Integer) Event