Results 1 to 4 of 4

Thread: listview control again.....

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2000
    Posts
    215
    Hi, I have another question regarding the listview control,
    I have added 3 pictures in my imagelist
    and my listview has 3 colums, now my previous question about the listview was how to add a small picture next to the item, and thanx for helping me with that, but now I want to add a picture next to the other 2 coloums as well and I can work out how to do it, my code to add items to the listview is

    With ListView1
    Set xListitem = .ListItems.Add(, , Rank, 1, 1)
    xListitem.SubItems(1) = Name
    xListitem.SubItems(2) = TimeOnline
    End With

    now I need to add a picture next to the 2 sub items as well, please help.

    thank you.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Apr 2000
    Posts
    215
    also how do you clear a listview control, I tried to code a for statement to remove all items, but it only removed certain items for some reason.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2000
    Posts
    215
    I just worked out my ssecond question, but I still need help adding pictures next to subitems, if someone can.

    thanx

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Well the listview doesnt support that
    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.

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