第一个MDI主窗体Form2 f = new Form2();f.ShowDialog();第二个窗体Form3 f = new Form3();f.MDIParent = Form1; //设置第三个窗体成为MDI主窗体的子窗体f.Show();
Form3 f3 = new Form3(); f3.ShowDialog();