コード例 #1
0
        private void exercício4ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmExercicio4 frm4 = new frmExercicio4();

            frm4.MdiParent   = this;
            frm4.WindowState = FormWindowState.Minimized;
            frm4.Show();
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: MuriloCC/LP2
        private void exercicio4ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form fc = Application.OpenForms["frmExercicio4"];

            if (fc != null)
            {
                fc.Close();
            }

            frmExercicio4 frm = new frmExercicio4();

            frm.MdiParent   = this;
            frm.WindowState = FormWindowState.Maximized;
            frm.Show();
        }