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.