Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 Panel1 Property
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
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)
Visual Basic (Declaration)
Public ReadOnly Property Panel1 As SplitterPanel
Visual Basic (Usage)
Dim instance As SplitContainer
Dim value As SplitterPanel

value = instance.Panel1
C#
public SplitterPanel Panel1 { get; }
Visual C++
public:
property SplitterPanel^ Panel1 {
    SplitterPanel^ get ();
}
JScript
public function get Panel1 () : SplitterPanel

Property Value

Type: System.Windows.Forms..::.SplitterPanel
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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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

.NET Framework

Supported in: 3.5, 3.0, 2.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker