private void button1_Click(object sender, EventArgs e) { if ((textBox7.Text == "") || (textBox1.Text == "") || (textBox3.Text == "") || (textBox4.Text == "") || (textBox14.Text == "") || (textBox9.Text == "") || (comboBox3.Text == "") || (textBox5.Text == "")) { MessageBox.Show("All the fields must be Filled"); } else { int User_ID = int.Parse(textBox7.Text); UserDbConnection userDB = new UserDbConnection(); userDB.Delete(User_ID); clearUser(); } }