private void Form1_Load(object sender, EventArgs e) { add_user addUserMDI = new add_user(); // Set the Parent Form of the Child window. addUserMDI.MdiParent = this; add_user closeUserMDI = new add_user(); // Set the Parent Form of the Child window. closeUserMDI.MdiParent = this; period periodMDI = new period(); periodMDI.MdiParent = this; // Display the new form. add_services add_tarifMDI = new add_services(); add_tarifMDI.MdiParent = this; // Display the new form. }
private void периодыToolStripMenuItem_Click(object sender, EventArgs e) { period frm = new period(); frm.Owner = this; frm.Show(); }