ForeColor Property

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

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 Control , Label Control , TextBox Control , RadioButton Control , CheckBox Control , ListBox Control , ComboBox Control , GroupBox Control , LED Control , ProgressBar Control , StatusBar Control , Tree View Control

Example

GSet frmMain.btnOK.ForeColor, "Blue"