Multiple Values in ListBox

darenkov

New member
Joined
Jul 9, 2005
Messages
3
Programming Experience
1-3
Hi,

I was wondering if I could populate a list box with more than two items, and then be able to access all three with code when the item is selected.

At the moment I have added a value for the "text" and the "value" attribues but I want to add a third item. here is my code:

For Each Item in myCollection
.Text = Item.FileName
.Value = Item.Path
lstFiles.Items.Add(item)
Next Item

Basically I would like to have an extra item added somehow for each iteration, ie
.SomeOtherItem = Item.Whatever

hope that is not confusing
 
Back
Top