It looks like you solved your original question. That code will add the values you want, and placing it in the form's Load
event is fine.
As for the second question, yes, you could switch a second ComboBox
based on the value selected in the "major" ComboBox
. Subscribe to the SelectedValueChanged
event:
void comboBox1_SelectedValueChanged(object sender, EventArgs e)
{
var selectedMajor = (MajorList)comboBox1.SelectedItem;
switch (selectedMajor)
{
case MajorList.Art:
// populate the second combo box with ArtConcentrations values
break;
case MajorList.Business:
// populate the second combo box with BusConcentrations values
break;
...
}