469,890 Members | 1,432 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,890 developers. It's quick & easy.

Populate a ComboBox with strings

I'm trying to populate a ComboBox (dropdown style) with strings of text
from an ArrayList. The ComboBox is actually being populated with the
correct items, however, they appear only as blank entries on the drop
down list. When I click on one of the blank entries, the editable
region displays the correct text, and subsequent functions relying on
this string execute properly. My question is why can't I see any of
the values that have been populated? I know that they are there. Here
is the code I'm using to populate the combobox:

foreach (String s in cats)
{
string formatted = ConvertToUpperCase(s);
comboBoxCat.Items.Add(formatted);
}

Thank you for any assistance.

-MisterE

Nov 23 '05 #1
0 1441

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Mike L | last post: by
16 posts views Thread by agrawal.solutions | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.