示例#1
0
        private void btnTrangChu_Click(object sender, EventArgs e)
        {
            Form frm = new FrmChinh();

            frm.Show();
            this.Hide();
        }
示例#2
0
        private void button4_Click(object sender, EventArgs e)
        {
            DialogResult dialog = MessageBox.Show("Bạn có chắc muốn thoát?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Information);

            if (dialog == DialogResult.Yes)
            {
                this.Hide();
                FrmChinh frm = new FrmChinh();
                frm.Show();
                //this.Close();
                //Environment.Exit(1);
            }
        }