Results 1 to 6 of 6

Thread: ListView - How to highlight an item

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2000
    Posts
    17
    How do I highlight an item in listview so that the highlight covers the entire row (across all columns)? I have a ListView that has two columns consisting of a filename in column one and the filedate in column two. Selecting an item via:
    lstMyList.ListItems(1).Selected = True
    only highlights the filename in the first column

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    listview1.FullRowSelect =True
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Addicted Member
    Join Date
    Jan 2000
    Location
    Fresno, California, USA
    Posts
    195
    Kedaman,
    Where did you find fullrowselect? I've been using the sendmessagelong API to do it. I can't find anything on on a fullrowselect method.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    YOu need to have MS common controls 6.0 not 5.0 or earlier.
    If you want i can send you the file
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Addicted Member
    Join Date
    Jan 2000
    Location
    Fresno, California, USA
    Posts
    195
    Wow! Learned something new again. Thanks.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Oct 2000
    Posts
    17

    Thumbs up Thanks

    Thanks!

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