G
Guest
The exception is thrown on setting the SelectedIndex = 1.
Brian Gideon said:This code will throw an ArgumentNullException:
comboBox1.Items.Add("Fred");
comboBox1.Items.Add("Barney");
comboBox1.Items.Add("Wilma");
comboBox1.Items[1] = null;
comboBox1.SelectedIndex = 1;
I would break before you set the selectedindex and see what object is at
items [1].
Well, that's not the same exception the OP was getting, but it's
interesting nonetheless. What line generated the exception? Last?
Second to last?