I use imagelist to display image in listview
How can i assign image of item for a bitmap varible.:confused:
Printable View
I use imagelist to display image in listview
How can i assign image of item for a bitmap varible.:confused:
OK. i resolved it :
Code:ImageList2.Images(ListView2.FocusedItem.Index)
No, that's not correct. That might work in some situations but certainly not all. How do you set an Image on an item in the first place? You set the ImageIndex or the ImageKey, right? Does it not then follow that, to get the Image from the ImageList, you need to use the item's ImageIndex or ImageKey?