Results 1 to 8 of 8

Thread: Listview subitem icon

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    36

    Listview subitem icon

    Hi,

    I am trying to add an icon to a subitem in a ListView...

    So far I'm not having much luck using sendmessage
    LVS_EX_SUBITEMIMAGES & LVM_SETITEM.

    And VB.NET doesnt have the Subitem.ReportIcon property...

    Does anyone have an idea ?
    Thanks
    BG

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    i dont think listview's suport icons subitem's icons

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    36

    Thanks

    Ok thanks, might just have to settle for icons in the item.

    I eventually got icons on the column headers using sendmessage (after a lot of messing around), which is why I thought that there might be a way here.

  4. #4
    Addicted Member Buy2easy.com's Avatar
    Join Date
    Jul 2002
    Posts
    200

    Why not try a treeview

    Why dont you try a treeview? with a treeview object you can put icons on sub items and on subitemsitems and on subitemsitemsitems well you get what i am saying i switched from using listview to treeview in my current application and it has made my life a whole lit easier and more organized. Just thaought i would throw out a suggestion. good luck!

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    36
    I've already put so much effort into this listview.....
    thanks

  6. #6
    New Member
    Join Date
    Jul 2002
    Location
    Mesa,AZ
    Posts
    4

    Talking Rather Stubborn

    Sound like a co-worker of mine. He bangs square pegs into round hole for a hobby!

    Hehe
    Bar Jabba

  7. #7
    Lively Member
    Join Date
    Jan 2002
    Posts
    105
    Just bumping this back up again to see if anyone has any new thoughts on this? as this is a year old now and maybe someone has found a way.

    I would like to place an icon in a subitem in a listview.

  8. #8
    Addicted Member PeteD's Avatar
    Join Date
    Jun 2003
    Location
    Sydney
    Posts
    158
    Use a 3rd party grid component. I use ComponentOne flexgrid for .net, and you can make it look just like a listview, and put icons in all columns

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