Export (0) Print
Expand All

SplitContainer.Panel1 Property

Gets the left or top panel of the SplitContainer, depending on Orientation.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

[LocalizableAttribute(false)] 
public SplitterPanel Panel1 { get; }
/** @property */
public SplitterPanel get_Panel1 ()

public function get Panel1 () : SplitterPanel

Not applicable.

Property Value

If Orientation is Vertical, the left panel of the SplitContainer. If Orientation is Horizontal, the top panel of the SplitContainer.

Use the Panel1 property to configure the left panel of a vertical SplitContainer or the top panel of a horizontal SplitContainer. For example, you can specify the minimum size of the panel by changing the value of the Panel1MinSize property, set the FixedPanel property to Panel1 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 Panel1 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.

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft