BackColor Property
Applies To
Form, Button, Label, TextBox, RadioButton, CheckBox, ListBox, ComboBox, PictureBox, GroupBox, LED, ProgressBar, TrackBar, StatusBar, Wizard, TreeView
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 Property , Form , Button Control , Label Control , TextBox Control , RadioButton Control , CheckBox Control , ListBox Control , ComboBox Control , PictureBox Control , GroupBox Control , LED Control , ProgressBar Control , TrackBar Control , StatusBar Control , Wizard Control , Tree View Control
Example
GSet frmMain.lblStatus.BackColor, "Red"