Reading List Box...

  • Thread starter Thread starter Joe Smith
  • Start date Start date
J

Joe Smith

What is the syntax to read the nth item in the listbox.
..NetFramework 1.1. and VB.Net 2003.
Thanks,
Joe
 
Joe Smith said:
What is the syntax to read the nth item in the listbox.

\\\
Dim o As Object = Me.ListBox.Items(n - 1)
///

If your items are strings:

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