Reading List Box...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joe Smith

    #1

    Reading List Box...

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


  • Herfried K. Wagner [MVP]

    #2
    Re: Reading List Box...

    "Joe Smith" <Joe_H_Smith@ho tmail.com> schrieb:[color=blue]
    > What is the syntax to read the nth item in the listbox.[/color]

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

    If your items are strings:

    \\\
    Dim s As String = DirectCast(Me.L istBox1.Items(n - 1), String)
    ///

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    Working...