Sets the color of text for cells in the Grid Control and in ListBox and ComboBox Controls.
Syntax
object.ForeColor [= OLE_COLOR]
Parameters
The ForeColor 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 text color for each cell in the grid. To set:
- The background color of the grid cells, use the BackColor property.
- The text color of the column headings, use the ForeColorFixed property.
- The background color of the column headings and the column for the current row pointer, use the BackColorFixed property.
- The background color of the portion of the control not occupied by the grid, use the BackColorBackGround property.
- The color of the grid lines, use the GridColor property.
See Also
DblClick (Area as Integer) Event