Пример #1
0
        private void btn_qlphong_Click(object sender, EventArgs e)
        {
            this.panel2.Controls.Clear();
            frm_Phong dv = new frm_Phong();

            dv.TopLevel = false;
            this.panel2.Controls.Add(dv);
            dv.Show();
        }
Пример #2
0
        private void btn_thoat_Click(object sender, EventArgs e)
        {
            DialogResult r;

            r = MessageBox.Show("Bạn thật sự muốn thoát?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if (r == DialogResult.Yes)
            {
                this.Close();
            }
            frm_Phong frm = new frm_Phong();

            frm.Show();
        }