private void deleteButton_Click(object sender, EventArgs e) { if (DialogResult.Yes == MessageBox.Show("Do You Want To Delete Id '+ idTextBox.Text +'?", "Message", MessageBoxButtons.YesNo, MessageBoxIcon.Question)) { con.DeleteDl(Int32.Parse(idTextBox.Text)); loadform(); } }