Results 1 to 3 of 3

Thread: Listbox help please!!!

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Galway, Ireland
    Posts
    316

    Post

    I have a list box and when I do

    list1.additem "jjjjjjj"

    I want the last item to be displayed

    so that if the listbox is full it goes to the bottom and selects the last one.
    what I want is something like below
    list1.select (List1.ListCount - 1)

    except there is no list1.select only selected to see if it is selected

    help please

    Thanks
    John Murphy
    Galway
    Ireland

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    try this:
    it highlights it though!

    Code:
    List1.ListIndex = List1.ListCount - 1
    ------------------
    Mark Sreeves
    Analyst Programmer

    [email protected]
    A BMW Group Company



  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Galway, Ireland
    Posts
    316

    Post

    Thanks a million this is exactly what I wanted.

    John

Posting Permissions

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



Click Here to Expand Forum to Full Width