Using collapsed windows in WinForm

Source: Internet
Author: User

Use the controls here

Http://www.codeproject.com/Articles/18401/XPanderControls

Precautions

You need to add WinForm ToolStripContainer1 before use

THIS.TOOLSTRIPCONTAINER1.CONTENTPANEL.CONTROLS.ADD (THIS.PANEL1);

You need to set up private BSE. Windows.Forms.Panel Panel1; properties

This.panel1.Dock = system.windows.forms.dockstyle.left;//Fold Left

This.panel1.ShowExpandIcon = true;//shows a folded pattern

This.panel1.AssociatedSplitter = this.splitter1;//private BSE. Windows.Forms.Splitter Splitter1;

About the use of splitter in WinForm

http://blog.itpub.net/26221264/viewspace-735903

Use the splitter control to divide the interface into three parts that can adjust the width now let's do it ourselves. A user interface is divided into three sections, separated and controlled by two splitter controls, which are three sizes.




1. First place a control on the form with Part one, here is the TreeView control, and then set its Dock property to left so that the control is docked to the right of the form.


2. Now drag and drop a splitter control on the form, which is the Splitter1 in the interface, and set its Dock property to left, so it docks to the right edge of the TreeView control.


3. Drag and drop part two of the control on the form, here is the RichTextBox control, then set its Dock property to Bottom so that it docks in the lower portion of the form.


4. Drag and drop another Splitter control on the form, that is, the Splitter2 in the interface, set its Dock property to Bottom so that it automatically becomes horizontally placed and docked above the RichTextBox control.


5. Drag and drop part three onto the form and set its Dock property to Fill.


Now that you run the program, you can resize the other three controls with two Splitter controls.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.