.NET Framework Class Library
Form..::.BackColor Property

This member overrides Control..::.BackColor, and more complete documentation might be available in that topic.

Gets or sets the background color for the control.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)
Visual Basic (Declaration)
Public Overrides Property BackColor As Color
Visual Basic (Usage)
Dim instance As Form
Dim value As Color

value = instance.BackColor

instance.BackColor = value
C#
public override Color BackColor { get; set; }
Visual C++
public:
virtual property Color BackColor {
    Color get () override;
    void set (Color value) override;
}
JScript
public override function get BackColor () : Color
public override function set BackColor (value : Color)

Property Value

Type: System.Drawing..::.Color
A Color that represents the background color of the control. The default is the value of the DefaultBackColor property.

Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0
Page view tracker