private void btndelete_Click(object sender, EventArgs e) { if (MessageBox.Show("Are you sure want to delete?", "Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) { int i = blod.deleteitem(txtdeleteitem.Text); if (i > 0) { MessageBox.Show("Product has been delete"); } else { MessageBox.Show("Product is not found please input correct one"); } } }