Hey guys
My problem is this..
I have
* listview1 (with 3 columns)
* imagelist1 (with images)
i want to add files to cols and subcols, but..
this code works in every aspect it should, except, it wont add image in front of every line (in rows)..
but this code works..
and yes, i have added imagelist1 to smallimagelist properti in listview
How can i make it work?
My problem is this..
I have
* listview1 (with 3 columns)
* imagelist1 (with images)
i want to add files to cols and subcols, but..
VB.NET:
Dim itm As ListViewItem
Dim str(3) As String
str(0) = "Text to col 1"
str(1) = "Text to col 2"
str(2) = "Text to col 3"
itm = New ListViewItem(str)
itm.ImageKey = 0
ListView1.Items.Add(itm)
this code works in every aspect it should, except, it wont add image in front of every line (in rows)..
but this code works..
VB.NET:
ListView1.Items.Add("text", 0)
and yes, i have added imagelist1 to smallimagelist properti in listview
How can i make it work?
Last edited: