Beispiel #1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            frmLapHD frm = new frmLapHD();

            frm.MdiParent = this;
            frm.Show();
        }
Beispiel #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();
        }
Beispiel #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();
        }