private void btnTrangChu_Click(object sender, EventArgs e) { Form frm = new FrmChinh(); frm.Show(); this.Hide(); }
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); } }