//orders professor first and last name in combobox for the advanced search private void initializeProfessorComboBox() { for (int i = 0; i < DB.getNumProfs(); i++) { Professor prof = DB.getProfInDatabase(i); if ((prof.last + ", " + prof.first).Trim() != ",") // Doesn't add blank professor names { professor_adv.Items.Add(prof.last + ", " + prof.first); } } }