ComboBox.SelectedIndex = -1 problem

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top