Returns or sets the color for text drawn by graphics methods.
Object.ForeColor [ = dwForeColor ]
The ForeColor property syntax has the following parts:
Name |
Type |
Description |
Object |
A control or AForm |
A control or AForm object |
dwForeColor |
A number specifying the color for text drawn by graphics methods. |
The colors are specified by their RGB values.
The following statement changes the ACheckBox ForeColor to black.
chk1.ForeColor=aBlack