ForeColor Property

Returns or sets the color for text drawn by graphics methods.

Syntax

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

AColor

A number specifying the color for text drawn by graphics methods.

Comments

The colors are specified by their RGB values.

Example

The following statement changes the ACheckBox ForeColor to black.

chk1.ForeColor=aBlack

Applies to

 

AButton

AComboBox

AGroupBox

AListBox

ARadioButton

ACheckBox

AForm

ALabel

ALog

ATextBox

See Also

AColor, BackColor