How to: Set the background of a Windows Forms panel using the Designer
A Windows Forms Panel control can display both a background color and a background image. The BackColor property sets the background color for controls that are contained in the panel, such as labels and radio buttons. If the BackgroundImage property is not set, the BackColor selection will fill all of the panel. If the BackgroundImage property is set, the image will be displayed behind the controls that are contained in the panel.
The following procedure requires a Windows Application project with a form that contains a Panel control. For information about how to set up such a project in Visual Studio, see How to: Create a Windows Forms application project and How to: Add Controls to Windows Forms.
Set the background in the Windows Forms Designer
Open the project in Visual Studio and select the Panel control.
In the Properties window, click the arrow button next to the BackColor property to display a window with three tabs.
Select the Custom tab to display a palette of colors.
Select the Web or System tab to display a list of predefined names for colors, and then select a color.
In the Properties window, click the arrow button next to the BackgroundImage property.
In the Open dialog box, select the file that you want to display.
See also
.NET Desktop feedback