private SortedList CreateStudentYearList() { SortedList sl = new SortedList(); try { //constructor for student year ActiveDirectoryListHelper hp = new ActiveDirectoryListHelper(this.studentLDAPloc); //sorted list (year,array of students) sl = hp.GetStudentByYearList(); } catch (Exception e) { UpdateStatusStrip("Error retrieving AD list"); string mess = string.Format("{0} Exception caught", e); MessageBox.Show(mess, "Error in Profile Delete", MessageBoxButtons.OK, MessageBoxIcon.Information); } return (sl); }