Export (0) Print
Expand All

TextBoxBase.BackColor Property

Gets or sets the background color of the control.

[Visual Basic]
Overrides Public Property BackColor As Color
[C#]
public override Color BackColor {get; set;}
[C++]
public: __property Color get_BackColor();
public: __property void set_BackColor(Color);
[JScript]
public override function get BackColor() : Color;
public override function set BackColor(Color);

Property Value

A Color that represents the background of the control.

Remarks

You can use the BackColor property to change the background color of the text control to blend into the color scheme of your forms.

To change the color of the text within the control, use the ForeColor property. When setting the BackColor property of your text control, ensure that the color you choose does not cause the text of the control to disappear. For example, if the BackColor and ForeColor properties are both set to Color.Black, the text within your textbox control will not be visible.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

TextBoxBase Class | TextBoxBase Members | System.Windows.Forms Namespace | ForeColor

Show:
© 2014 Microsoft