Results 1 to 3 of 3

Thread: how to make an item highlited in a listbox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 1999
    Location
    u.s.a
    Posts
    127

    Post

    I have a list box which gets new items added to it by a command button (or drag and drop).
    I want the item that has just been just added to be highlighted(selected).
    Is there a way to highlight an item through code??
    Tahnks.
    Danny.

  2. #2
    Lively Member
    Join Date
    Oct 1999
    Location
    Australia
    Posts
    115

    Post

    Try this, asssuming you're always appending to the end of the list:

    List1.Selected(List1.ListCount - 1) = True

  3. #3
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224

    Post

    The simplest way is .. .


    List1.ListIndex = List1.NewIndex

    and it describes itself what it will do.

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