<1> Add DLL file reference
1. Create a WinForm project. A WinForm Form1 is generated by default.
2. Reference-> Add reference-> browse-> weiFenLuo. winFormsUI. Docking. dll.
3. Form attribute IsMdiContainer: True.
<2> Add a Docking Panel
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,
The Dock is Fill, DocumentStyle is DockingMdi, and RightToLeftLayout is True.
The Dock is the area that overwrites the entire MDI form. DocumentStyle is of Multi-document type. RightToLeftLayout means that all newly opened windows are docked in the right area.
Dock form:
1. Create a New WinForm Form2.
2. Modify the form in the code to inherit from DockContent.
Public partial class Form2: DockContent
3. display the docking form in the main form Form1.
Map2D map2d = Map3D map3d = MainDialog_Load (