private void toolStripButton4_Click(object sender, EventArgs e) { foreach (Form forms in this.MdiChildren) { if (forms is Frpt) { forms.Focus(); forms.WindowState = FormWindowState.Maximized; return; } } Frpt rp = new Frpt(label1.Text, false); rp.MdiParent = this.MdiParent; rp.WindowState = FormWindowState.Maximized; rp.Show(); }
private void MI_Sys_Bmd_Click(object sender, EventArgs e) { foreach (Form forms in this.MdiChildren) { if (forms is Frpt) { forms.Focus(); forms.WindowState = FormWindowState.Maximized; return; } } Frpt rp = new Frpt(); rp.MdiParent = this; rp.WindowState = FormWindowState.Maximized; rp.Show(); }