Export (0) Print
Expand All

SplitContainer::Panel2 Property

Gets the right or bottom panel of the SplitContainer, depending on Orientation.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property SplitterPanel^ Panel2 {
	SplitterPanel^ get ();
}

Property Value

Type: System.Windows.Forms::SplitterPanel
If Orientation is Vertical, the right panel of the SplitContainer. If Orientation is Horizontal, the bottom panel of the SplitContainer.

Use the Panel2 property to configure the right panel of a vertical SplitContainer or the bottom panel of a horizontal SplitContainer. For example, you can specify the minimum size of the panel by changing the value of the Panel2MinSize property, set the FixedPanel property to Panel2 so that the panel remains the same size when the container is resized, or you can get or set the panel's BackgroundImage and BackgroundImageLayout properties.

You cannot remove Panel2 from the SplitContainer.

NoteNote

If Panel1 or Panel2 contains no control that can receive the focus, the focus remains on the splitter when it is clicked. To change the focus to Panel1 or Panel2, set the TabIndex property of Panel2 to 0 and the TabIndex property of Panel1 to 1.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft