private void btnDelete_Click(object sender, EventArgs e) { try { rList.deleteRecord(Convert.ToInt32(txtDelete.Text)); } catch { MessageBox.Show("Done"); } }