ForeColor Property

Applies To
Button, Label, TextBox, RadioButton, CheckBox, ListBox, ComboBox, GroupBox, LED, ProgressBar, StatusBar

Description
Gets or sets the foreground color of a control.

Usage

GGet Form.Control.ForeColor, var  
GSet  Form.Control.ForeColor, value  
Form
Name of a form or string variable containing a form name.
Control
Name of a control or string variable containing a control name.
var
String variable that will contain the value of the property.
value
String expression for the new value of the property.

Values
A string that represents the foreground color of a control.
Default: Control Text

See Also
Button, Label, TextBox, RadioButton, Checkbox, ListBox, ComboBox, GroupBox, LED, ProgressBar, StatusBar

Example

GSet frmMain.btnOK.ForeColor, "Blue"