mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 17:16:03 +02:00
* 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
2.2 KiB
2.2 KiB
title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
| title | ms.date | dev_langs | helpviewer_keywords | ms.assetid | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| How to: Split a Window Horizontally | 03/30/2017 |
|
|
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
-
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.
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 Subpublic 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); }