Problem in Image list and Listview
hi guys,
I have a comparison between two pictures and the results between those two will be display in the listview, the problem is how can i add an image to the imagelist and at the same time at the listview? or is there another best way to do it?
Really need help...
Re: Problem in Image list and Listview
Quote:
Originally Posted by shiroi_yuki11
... how can i add an image to the imagelist and at the same time at the listview?...
Perhaps like this:
Code:
Private Sub Command1_Click()
Dim sImage As String
sImage = "c:\new.ico"
ImageList1.ListImages.Add , "new", LoadPicture(sImage)
ListView1.SmallIcons = ImageList1
ListView1.ListItems.Add , , "NewItem", , "new"
End Sub
Re: Problem in Image list and Listview
Thanks but the code doesn't apply to me... I want to add the pictures in the imagelist everytime (because of looping) and at the same time in the listview? I forgot to mention that my listview has a col header (But I could take it off). :confused: