Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Handling multiple selections 1

Status
Not open for further replies.

BostjanPerdan

Programmer
Jan 24, 2006
25
SI
Hi!

I would like to know, how can I access or find out in code which items were chosen in a MultiSelect ListBox?

ListBox.Value won't work in this case. I have already searched the help but I couldn't find anything useful.

Cheers,
Bostjan
 
Have a look at the Selected property of the ListBox object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Hi all!

The Selected property enables me to find out which entries were selected in a multi select ListBox via their index value. Unfortunately this doesn’t do it for me, because I would like to find out the contents (strings) of the selected entries because the number of entries in the ListBox and their contents wary each time, the code is used. Do I have to make a special list with index numbers and appropriate entries and update it regularly to get this information or is there an easier way around this?

Cheers,
Bostjan
 
Having index, you can get the contents via List property of ListBox.

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top