private void btnDelete_Click(object sender, EventArgs e) { string id = txtID.Text; DataProcess dt = new DataProcess(); if (dt.DeleteBill(id) == true) { MessageBox.Show("Delete success!!"); LoadData(); } else { MessageBox.Show("Error"); } }