This documentation is archived and is not being maintained.

Control.BackgroundImage Property

Gets or sets the background image displayed in the control.

[Visual Basic]
Public Overridable Property BackgroundImage As Image
public virtual Image BackgroundImage {get; set;}
public: __property virtual Image* get_BackgroundImage();
public: __property virtual void set_BackgroundImage(Image*);
public function get BackgroundImage() : Image;
public function set BackgroundImage(Image);

Property Value

An Image that represents the image to display in the background of the control.


Note   Images with translucent or transparent colors are not supported by Windows Forms controls as background images.

Notes to Inheritors:  When overriding the BackgroundImage property in a derived class, use the base class's BackgroundImage property to extend the base implementation. Otherwise, you must provide all the implementation. You are not required to override both the get and set accessors of the BackgroundImage property; you can override only one if needed.


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

See Also

Control Class | Control Members | System.Windows.Forms Namespace | Image | BackgroundImageChanged