Initial winforms content migrated (#18)

* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
This commit is contained in:
Andy De George
2020-09-01 16:26:21 -07:00
committed by GitHub
parent 1a27c9b107
commit c0ba284473
1557 changed files with 129980 additions and 13 deletions
@@ -0,0 +1,55 @@
---
title: "How to: Split a Window Horizontally"
ms.date: "03/30/2017"
dev_langs:
- "csharp"
- "vb"
helpviewer_keywords:
- "SplitContainer control [Windows Forms], horizontal splitter"
- "splitter windows [Windows Forms], changing splitter orientation"
- "splitter windows [Windows Forms], horizontal"
- "windows [Windows Forms], splitting horizontally"
ms.assetid: a1f74f29-048c-4723-85fa-b9d375ab8f4b
---
# How to: Split a Window Horizontally
The following code example makes the splitter that divides the <xref:System.Windows.Forms.SplitContainer> control horizontal.
> [!NOTE]
> The <xref:System.Windows.Forms.SplitContainer.Orientation%2A> property of the <xref:System.Windows.Forms.SplitContainer> control determines the direction of the splitter, not of the control itself.
### To split a window horizontally
1. Within a procedure, set the <xref:System.Windows.Forms.SplitContainer.Orientation%2A> property of the <xref:System.Windows.Forms.SplitContainer> control to <xref:System.Windows.Forms.Orientation.Horizontal>.
```vb
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
```
```csharp
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
- <xref:System.Windows.Forms.SplitContainer>
- [SplitContainer Control](splitcontainer-control-windows-forms.md)