private void FrmThi_Load(object sender, EventArgs e)
        {
            droptable();
            this.CauDaLam = 0;
            if (dethi == null)
            {
                setdethi();
            }
            Screen scr = Screen.PrimaryScreen; //đi lấy màn hình chính

            this.Left = (scr.WorkingArea.Width - this.Width) / 2;
            this.Top  = (scr.WorkingArea.Height - this.Height) / 2;
            int i = 0;

            foreach (DataRow row in this.dethi.Rows)
            {
                String myValue = row["SoDA"].ToString();
                String msch    = row["MaCH"].ToString();
                ptl = new FrmPhieuTraLoi();
                pn_DeThi.Controls.Add(ptl.gbx("cau" + (i + 1).ToString(), int.Parse(myValue), (i + 1).ToString(), msch));
                listptl.Add(ptl);
                i++;
            }
            loadcauhoi(this.CauDangLam);
            listptl[CauDangLam].setBackColorCDL();

            txt = lbSatHachBangLai.Text;
            len = txt.Length;
            lbSatHachBangLai.Text = "";
            timer1.Start();
            this.timer2.Start();
        }
        private void FrmThi_Load(object sender, EventArgs e)
        {
            //Cursor.Hide();
            droptable();
            this.CauDaLam = 0;
            if (dethi == null)
            {
                setdethi();
            }
            Screen scr = Screen.PrimaryScreen; //đi lấy màn hình chính

            this.Left = (scr.WorkingArea.Width - this.Width) / 2;
            this.Top  = (scr.WorkingArea.Height - this.Height) / 2;
            int i = 0;

            foreach (DataRow row in this.dethi.Rows)
            {
                String myValue = row["SoDA"].ToString();
                String msch    = row["MaCH"].ToString();
                ptl = new FrmPhieuTraLoi();

                //ptl.getGroupBox().Click += new System.EventHandler(this.QuestionGroupBox_Click);
                //ptl.getGroupBox().MouseClick += Gbox_MouseClick;

                pn_DeThi.Controls.Add(ptl.gbx("cau" + (i + 1).ToString(), int.Parse(myValue), (i + 1).ToString(), msch));
                listptl.Add(ptl);
                i++;
            }
            loadcauhoi(this.CauDangLam);
            listptl[CauDangLam].setBackColorCDL();

            Random r = new Random();

            lbmade1.Text          = r.Next(1, 4).ToString();
            txt                   = lbSatHachBangLai.Text;
            len                   = txt.Length;
            lbSatHachBangLai.Text = "";
            timer1.Start();
            this.timer2.Start();
        }