SplitContainer.Panel1 Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the left or top panel of the SplitContainer, depending on Orientation.
public:
property System::Windows::Forms::SplitterPanel ^ Panel1 { System::Windows::Forms::SplitterPanel ^ get(); };
public System.Windows.Forms.SplitterPanel Panel1 { get; }
member this.Panel1 : System.Windows.Forms.SplitterPanel
Public ReadOnly Property Panel1 As 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.
Note
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.
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: