private void button2_Click(object sender, EventArgs e) { if (textBox2.Text != "Team Name" && textBox2.Text != "" && selectedFile != null) { UpdateDBLin ul = new UpdateDBLin(); MessageBox.Show(ul.InsertTeam(textBox2.Text, selectedFile)); } else { MessageBox.Show("Enter Valid Info"); } }