1. Set the parent form property; IsMdiContainer set to true;
2. drag the control button, modify button in the text.
3. Click the button control setup code:
// instantiate a form
Form1 FRM = new new Form1 ();
// Set 2 relevant to the parent form
frm.MdiParent = this;
// 3 shows subform
frm.Show ();
// title. 4 subform
frm.Text = "subform";
// 5. Set the form is maximized
frm.WindowState = FormWindowState.Maximized;
4. The example is completed, final results are as follows: