In the process of software development, it is necessary to develop a good visual effect.
A tree control is displayed on the left side of the form, while the current working form is displayed on the right side.
Below is a sectionCodeIs the code for calling the work window
Frm_studentmanage FRM = new frm_studentmanage ();
This. panelfill. contains (FRM); // specifies that the form is a sub-control of the Panel
frm. location = new point (0, 0); // Form Location
frm. toplevel = false; // the top-level window does not have a parent window.
frm. topmost = false;
frm. startposition = system. windows. forms. formstartposition. manual; // specifies the location of the Form.
frm. size = This. panelfill. clientsize; // The form size is the size of the work area of the Panel. The Work Area of the control is the border of the control minus the non-work area elements (such as the scroll bar, border, title bar, and menu
frm. parent = This. panelfill; // The parent container of the form is a panel
frm. dock = dockstyle. fill; // fill the entire panel with a form
frm. show ();