property Edit.ForeColor as Color
Retrieves or sets a value that indicates the control's foreground color.

TypeDescription
Color A color expression that specifies the control's foreground color. 

Use the BackColor and ForeColor properties to define the control's background and foreground colors.  The ForeColor property has no effect if the control's Enabled property is False. Use the BackColorLine property to specify the line's background color. Use the ForeColorLine property to specify the line's foreground color. If the control is read-only ( Locked property is True ), the BackColorLockedLine property indicates the control's background color, if it is not zero. If the control is read-only ( Locked property is True ), the ForeColorLockedLine property indicates the control's foreground color, if it is not zero.

The following VB sample changes the control's foreground color:

With Edit1
    .ForeColor = ColorConstants.vbBlack
End With

The following C++ sample changes the control's foreground color:

m_edit.SetForeColor( RGB(0,0,0) );

The following VB.NET sample changes the control's foreground color:

With AxEdit1
    .ForeColor = Color.Black
End With

The following C# sample changes the control's foreground color:

axEdit1.ForeColor = Color.Black;

The following VFP sample changes the control's foreground color:

With thisform.Edit1.Object
	.ForeColor = RGB(0,0,0)
endwith