ListBox

E

eXtreme

How do I get the value of an item in the listbox given an index of a list
item?

Basically, I have the index value for the current item and want to get the
privious and next item value.

Thanks,
 
K

Ken Tucker [MVP]

Hi,

ListBox1.Items.Item(1)



Ken

----------------------------------

How do I get the value of an item in the listbox given an index of a list
item?

Basically, I have the index value for the current item and want to get the
privious and next item value.

Thanks,
 
H

Herfried K. Wagner [MVP]

eXtreme said:
How do I get the value of an item in the listbox given an index of a list
item?

Basically, I have the index value for the current item and want to get the
privious and next item value.

\\\
Dim s As String = DirectCast(Me.ListBox1.Items(n), String)
///

Replace 'String' with the type of the items you add to the listbox control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top