private void editCourse_Load(object sender, EventArgs e) { comboBoxCourse.DataSource = course.getAllCourse(); comboBoxCourse.DisplayMember = "courseID"; comboBoxCourse.ValueMember = "courseID"; comboBoxCourse.SelectedItem = null; }