ListBox

  • Thread starter Thread starter eXtreme
  • Start date Start date
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,
 
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,
 
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.
 
Back
Top