private void btnDelete_Click(object sender, EventArgs e) { DialogResult res = MessageBox.Show("Are you sure you want to Delete User", "Confirmation", MessageBoxButtons.OK, MessageBoxIcon.Information); if (res == DialogResult.OK && balUser.DeleteUser(txtUserId.Text)) { MessageBox.Show("Deleted Successfully", "Updated", MessageBoxButtons.OK, MessageBoxIcon.Information); LoadGrid(); LoadCbo(); } else { MessageBox.Show("Deleted Operation Failure", "Failure", MessageBoxButtons.OK, MessageBoxIcon.Error); } }