Users Pricing

forum

Home Forums Programmatically storing a list into my combobox's item collection – MindStick

Programmatically storing a list into my combobox's item collection

Anonymous User 2267 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.


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md