VS.Net 2003 and VB.Net question

stram8777

New member
Joined
Jul 18, 2006
Messages
1
Programming Experience
1-3
I have a really simple question. I am building a Visual Basic Porject in VS. I am trying to use the combobox style dropdownlist. I add the items to the string collection and sometimes when I compile and run the project the collections items display in the drop down box sometimes not. They are always selectable though, meaning I can't see the item but if I click in the drop down box it shows up as a selection. What am I doing wrong to cause this to happen?

Thanks
 
If I was doing it in VB6 I would set the combo1.text to the value that

I wanted displayed before any click to drop down.

I'm new to .Net so I'm not sure what differences may exist.
 
Set the .SelectedIndex = 0 ... that will select the first item in the list.
Or you can set the .SelectedText property to the text you want selected.
-tg
 
Back
Top