System.Windows.Forms.SplitContainer.Panel2 Property

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

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
[System.ComponentModel.Localizable(false)]
public SplitterPanel Panel2 { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the SplitContainer.Panel2 property to configure the right panel of a vertical System.Windows.Forms.SplitContainer or the bottom panel of a horizontal System.Windows.Forms.SplitContainer. For example, you can specify the minimum size of the panel by changing the value of the SplitContainer.Panel2MinSize property, set the SplitContainer.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 SplitContainer.BackgroundImage and SplitContainer.BackgroundImageLayout properties.

You cannot remove SplitContainer.Panel2 from the System.Windows.Forms.SplitContainer.

Note:

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

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0