Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,I have listbox(selection mode) that contains n number of data.I`m converting selected index (0,1,2,3...) into (1,2,4,8...) respectively using pow()method and again decoding using log2()method..

Now if i select 2 data in listbox say(1,2) then i should able convert into(2+4=6).Please help me how to convert when multiple data selected??
Posted

1 solution

You can retrieve the index values from the ListBox by accessing the SelectedIndices[^] property.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900