private bool checkData(ComboBox combo, Label label) { label.Text = ""; if (combo.SelectedIndex < 0) { label.Text = "Seleccione Especialidad"; return false; } return true; }