By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,876 Members | 1,206 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,876 IT Pros & Developers. It's quick & easy.

ComboBox.SelectedIndex = -1 problem

P: n/a
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

--
Marc R.
E-mail
Dim strAddr As String =Convert.ToString(String.Format("{0}.{2}@{3}.{1}",
"mxrc", "cx", "robitxille", "xrs-solutions")).Replace("x", "a")
Nov 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Known bug:
http://support.microsoft.com/default...b;en-us;327244

/claes

"Marc Robitaille" <in**********@pintendre.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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

--
Marc R.
E-mail
Dim strAddr As String =Convert.ToString(String.Format("{0}.{2}@{3}.{1}",
"mxrc", "cx", "robitxille", "xrs-solutions")).Replace("x", "a")

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.