コード例 #1
0
        private void tsLopHoc_Click(object sender, EventArgs e)
        {
            this.Close();
            frmLopHoc frmLh = new frmLopHoc();

            frmLh.Show();
        }
コード例 #2
0
        private void btnLopHoc_Click(object sender, EventArgs e)
        {
            frmLopHoc frm = new frmLopHoc();

            //frm.TopLevel = false;
            //frm.FormBorderStyle = FormBorderStyle.None;
            //frm.Show();
            ////Add frm vào panel
            //pnl.Size = frm.Size;
            //pnl.Controls.Add(frm);
            ////Gán location của panel ra khỏi form main
            //pnl.Location = new Point(iDoRongFormMain, 50);
            ////Chạy timer
            //tmNhapDiem.Start();

            frm.ShowDialog();
        }