Dockpanel Operation Method

Source: Internet
Author: User

1. Create a WinForm project. A WinForm Form1 is generated by default. 2. Reference-> Add reference-> browse-> weiFenLuo. winFormsUI. Docking. dll. 3. Set the Form1 form attribute IsMdiContainer: True. 4. Right-click the Toolkit and choose items>. net components> browse> weiFenLuo. winFormsUI. Docking. dll> dockPanel in the Toolkit. 5. Drag the dockPanel to form Form1 and set the Dock attribute. I set Fill. Dock form: 1. Create a WinForm form Form2. 2. Modify the form in the code to inherit from DockContent. Using WeifenLuo. WinFormsUI. Docking; public partial class Form2: DockContent 3. display the dock form in the main form Form1. Private void Form1_Load (object sender, EventArgs e) {Form2 form2 = new Form2 (); form2.Show(this.doc kPanel1);} If dockPanel is nested in another container control (such as panel ), set the DocumentStyle attribute of dockPanel to DockingWindow/DockingSdi.

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.