private FormsMdi() { MenuItem aboutMenuItem = new MenuItem("About"); MenuItem fileMenuItem = new MenuItem("File", new MenuItem[] { aboutMenuItem }); MainMenu mainMenu = new MainMenu(new MenuItem[] { fileMenuItem }); Menu = mainMenu; Size = new Size(600, 500); Text = "Forms MDI"; IsMdiContainer = true; FormsHello child1 = new FormsHello(); child1.MdiParent = this; child1.Visible = true; CustomControlForm child2 = new CustomControlForm(); child2.MdiParent = this; child2.Visible = true; }
private FormsMdi() { MenuItem aboutMenuItem = new MenuItem("About"); MenuItem fileMenuItem = new MenuItem("File", new MenuItem[] {aboutMenuItem}); MainMenu mainMenu = new MainMenu(new MenuItem[] { fileMenuItem }); Menu = mainMenu; Size = new Size(600, 500); Text = "Forms MDI"; IsMdiContainer = true; FormsHello child1 = new FormsHello(); child1.MdiParent = this; child1.Visible = true; CustomControlForm child2 = new CustomControlForm(); child2.MdiParent = this; child2.Visible = true; }