Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jul 2003
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    listview positioning (VB6)

    Does anyone know how I can position to an item in a listview if I know the key?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: listview positioning (VB6)

    Do you mean that you want to select the item? If so, use code like this:

    Me.ListView1.ListItems("KeyValue").Selected = True

    where KeyValue is the key of the item (you can use a variable, of course). If the HideSelection property of the listview control is True, you will only see the effect when it has the focus.

  3. #3
    New Lounger
    Join Date
    Jul 2003
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: listview positioning (VB6)

    Thank you Hans

    You gave me the clue I was looking for

Posting Permissions

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