private void btnThoat_Click(object sender, EventArgs e) { DialogResult h = MessageBox.Show ("Bạn chắc chắn muốn thoát?", "Error", MessageBoxButtons.OKCancel); if (h == DialogResult.OK) { frmLoaiXe fnv = new frmLoaiXe(); this.Close(); } }
private void asdasdToolStripMenuItem1_Click(object sender, EventArgs e) { frmLoaiXe formlx = new frmLoaiXe(); formlx.Show(); }