ComboBox.SelectedIndex = -1 problem

  • Thread starter Thread starter Marc Robitaille
  • Start date Start date
M

Marc Robitaille

Hello,

I fill a ComboBox with a collection on my own. So I set the DisplayMember
and the ValueMember properties to some fields of my collection. It works
perfectly. The problem is when my form showed up, even if I set the
SelectedIndex of my ComboBox to -1, the first value in my collection is
selected. I check everywhere in my code to be sure that nothing change the
SelectedIndex and find nothing. Maybe it is a know problem or it is
something that I do wrong. Can someone help me.

Thank you
 
Back
Top