Пример #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);
            }
        }