PDA

View Full Version : Listview ImageList VBA -?



GalileoGali
12-20-2008, 09:17 AM
I have got a userform in Excel -VBE,
I added a ListView Control and a imagelist control
How obtain a link between both controls?
The Options of ListView "Icon Image List" are Empty.

Why?
__________________

Kenneth Hobs
12-20-2008, 10:21 AM
I don't know what an imagelist control is. Maybe you can explain your goal.

If you attach an xls, it would be easier to help.

lifeson
12-20-2008, 11:58 AM
Link the imaglist to the list view like this
With Me.listview1
.Icons = imagelist1
'add your items to the listview
.ListItems.Add , , entDesc, idx
End With


You then need to add your images to the imagelist control either directly using the browser or by code
imagelist1.ListImages.Add Picture:=LoadPicture(file)

GalileoGali
12-20-2008, 01:25 PM
Thank you Lifeson

I will try and after i will make the comment

: pray2: