예제 #1
0
파일: frmMain.cs 프로젝트: manhnd1105/qlpcc
        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
파일: frmMain.cs 프로젝트: manhnd1105/qlpcc
        //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();
        }