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
Printable View
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
i dont think listview's suport icons subitem's icons
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.
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!
I've already put so much effort into this listview..... :(
thanks
Sound like a co-worker of mine. He bangs square pegs into round hole for a hobby!
Hehe
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.
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