BackColor Property

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

Description
Gets or sets the background color of a form or control.

Usage

GGet Form.Control.BackColor, var  
GSet  Form.Control.BackColor, 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
The name of the color to be used for the background color of the form or control.
Default:

  • Control (Form, Button, Label, RadioButton, CheckBox, PictureBox, GroupBox, LED)
  • Window (TextBox, ListBox, ComboBox)

See Also
BackColorMode, Form, Button, Label, TextBox, RadioButton, Checkbox, ListBox, ComboBox, PictureBox, GroupBox, LED, ProgressBar, TrackBar, StatusBar

Example

GSet frmMain.lblStatus.BackColor, "Red"