forum

Home / DeveloperSection / Forums / Programmatically storing a list into my combobox's item collection

Programmatically storing a list into my combobox's item collection

Anonymous User 1832 27-Jan-2014

I am working on a Windows Form right now, specifically, a combo box.

I have two List<string>. Let's say the first List are names, and the second List are ages.

How does one store the entire first List into the collection, so I can use the comboBox to access them?

Upon clicking on an item in this collection, for example, the fifth name, how do I get the index of this item?

So far, I have created my form, and laid the skeleton of the win forms application, but the part of storing the list into the collection is stopping me from moving forward 

 thank you.


c# c# 
Updated on 28-Jan-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By