private void btnAdd_Click(object sender, EventArgs e) { if (txtOrderID.Text != "Order No.") { DialogResult result = MessageBox.Show("Are you sure you want cancel the delivery?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { db.sp_delete_DeliverySupplier(txtOrderID.Text); GenDelID(txtDeliveryNo); gbDelivery.Hide(); gbOrderDetails.Show(); } } else { gbDelivery.Hide(); gbOrderDetails.Show(); } btnProceed.Hide(); }