Пример #1
0
        private void btnQLSV_Click(object sender, EventArgs e)
        {
            Form frm = frmMain.ActiveForm;

            foreach (Form f in frm.MdiChildren)
            {
                if (f.Name == "frmQLSV")
                {
                    f.Activate();
                    return;
                }
            }
            Form frmQLSV = new frmQLSV();

            frmQLSV.MdiParent = this;
            frmQLSV.Show();
            frmQLSV.Top  = 0;
            frmQLSV.Left = 0;
        }
Пример #2
0
        private void sinhViênToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Form frm = frmMain.ActiveForm;

            foreach (Form f in frm.MdiChildren)
            {
                if (f.Name == "frmMonhoc")
                {
                    f.Activate();
                    return;
                }
            }
            frmQLSV form = new frmQLSV();

            form.MdiParent = this;
            form.Show();
            form.Top  = 0;
            form.Left = 0;
        }