Пример #1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            frmLapHD frm = new frmLapHD();

            frm.MdiParent = this;
            frm.Show();
        }
Пример #2
0
        private void btnMoi_Click(object sender, EventArgs e)
        {
            foreach (System.Windows.Forms.Form frm in this.MdiChildren)
            {
                frm.Close();
            }
            frmLapHD TP = new frmLapHD();

            TP.MdiParent = Application.OpenForms["frmMain"];
            TP.Show();
        }
Пример #3
0
        //private void itemDanhMucHD_Click(object sender, EventArgs e)
        //{
        //    foreach (System.Windows.Forms.Form frm in this.MdiChildren)
        //    {
        //        frm.Close();
        //    }
        //    frmDanhMucHD childForm = new frmDanhMucHD();
        //    childForm.MdiParent = this;
        //    childForm.Show();
        //}

        //private void itemKiemTra_Click(object sender, EventArgs e)
        //{
        //    foreach (System.Windows.Forms.Form frm in this.MdiChildren)
        //    {
        //        frm.Close();
        //    }
        //    frmKiemTra childForm = new frmKiemTra();
        //    childForm.MdiParent = this;
        //    childForm.Show();
        //}

        private void itemTinhPhi_Click(object sender, EventArgs e)
        {
            foreach (System.Windows.Forms.Form frm in this.MdiChildren)
            {
                frm.Close();
            }
            frmLapHD childForm = new frmLapHD();

            childForm.MdiParent = this;
            childForm.Show();
        }