How to: Split a Window Horizontally
The following code example makes the splitter that divides the SplitContainer control horizontal.
Note
The Orientation property of the SplitContainer control determines the direction of the splitter, not of the control itself.
To split a window horizontally
Within a procedure, set the Orientation property of the SplitContainer control to Horizontal.
Sub ShowSplitContainer() Dim splitContainer1 as new SplitContainer() splitContainer1.BorderStyle = BorderStyle.Fixed3D splitContainer1.Location = New System.Drawing.Point(74, 20) splitContainer1.Name = "DemoSplitContainer" splitContainer1.Size = New System.Drawing.Size(212, 435) splitContainer1.TabIndex = 0 splitContainer1.Orientation = Orientation.Horizontal Controls.Add(splitContainer1) End Sub
public void showSplitContainer() { SplitContainer splitContainer1 = new SplitContainer (); splitContainer1.BorderStyle = BorderStyle.Fixed3D; splitContainer1.Location = new System.Drawing.Point (74, 20); splitContainer1.Name = "DemoSplitContainer"; splitContainer1.Size = new System.Drawing.Size (212, 435); splitContainer1.TabIndex = 0; splitContainer1.Orientation = Orientation.Horizontal; this.Controls.Add (splitContainer1); }
See also
Sadarbojieties ar mums vietnē GitHub
Šī satura avotu var atrast vietnē GitHub, kur varat arī izveidot un pārskatīt problēmas un atgādāšanas pieprasījumus. Lai iegūtu papildinformāciju, skatiet mūsu līdzstrādnieku rokasgrāmatu.
.NET Desktop feedback
Atsauksmes
https://aka.ms/ContentUserFeedback.
Drīzumā: 2024. gada laikā mēs pakāpeniski pārtrauksim izmantot “GitHub problēmas” kā atsauksmju par saturu mehānismu un aizstāsim to ar jaunu atsauksmju sistēmu. Papildinformāciju skatiet:Iesniegt un skatīt atsauksmes par