private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { textBox22.Clear(); if (comboBox1.Text != "Patient ID") { PlaceAppointmentmysql name = new PlaceAppointmentmysql(); textBox22.Text = name.findpatientsinformation(comboBox1.Text); } }