Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Visual Basic - Lists

    I'm currently writing a program that will go to websites on a list. Unfortunatly I'm unsure of how to get the top item off of a list.

    Could someone please share with me the property/method/function to do this?

    Thanks in advance,
    Ryan.

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Are you talking about using the listbox control?

    If so, you can access the list using the "List" property, and to get the top item, you can specify it's index.

    e.g.
    Code:
    MsgBox List1.List(0)
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •