This article supporting source code
Hello everyone! Today we are going to start with the fifth lesson of this series of courses, which will lead us to work together to achieve the functions of questionnaire, questionnaire, questionnaire and questionnaire management.
First of all, in order to make our interface more convenient to operate and layout, we introduce the third source control dockpanel[of course can not introduce the control and direct development, you can from here: DockPanel control download its compiled DLL file, can also from here: http:// Sourceforge.net/projects/dockpanelsuite for download. About the DockPanel control of the relevant information you can go to http://sourceforge.net/projects/dockpanelsuite or the Internet to find relevant information to understand, the project system is only used for the interface layout of the operation, As for other aspects of the function is not discussed, interested friends can go to http://sourceforge.net/projects/dockpanelsuite download their source code to carry out research.
Ok! After downloading the DockPanel control, We copy it (that is, the WeifenLuo.WinFormsUI.Docking.dll file) to the Bin folder in the Questionnairesystem project we created earlier and add it to the project's references by right-clicking the project name or right-clicking Refer to "-à" to add References ... ", select the Browse tab in the pop-up dialog box, and find the WeifenLuo.WinFormsUI.Docking.dll file that you just copy to the project, click OK, as shown in Figure 5-1 below:
Figure 5-1
Once the DockPanel is introduced, we can put it in the toolbox and use it like any other control, and we'll add it to the Toolbox: Right-click the blank space under the left toolbox to-à "Select items"-à Click "Browse" in the pop-up dialog box. and find the copy to the project WeifenLuo.WinFormsUI.Docking.dll and open, after the following figure 5-2, and then click "OK", you can find the left of the toolbox below a DockPanel control, which means that the addition of a successful
Figure 5-2
Open the main window mainfrom that we created before, and pull the DockPanel control that you just added to the toolbox into the margins of its interface, set its Name property to DockPanel, and click Dock in parent container, as shown in Figure 5-3 below, to dock to the parent container.
Figure 5-3