I'm 99.999% sure that it is not possible. You could write your own
UserControl that emulated a listview (take a few days), or buy a third party
one, but I'm pretty sure that the standard listview won't do it.
Mark
-----Original Message-----
From: Keith Fingleton [mailto:Keith.Fingleton@p...]
Sent: 11 October 2001 10:18
To: professional vb
Subject: [pro_vb] Icons in Listview
Is it possible to add an icon into a row of a ListView control in a position
other that the first column? ie in the code below in for example SubItems(1)
I would like to add an icon instead of "Program File".
Dim itmx As ListItem
Dim colx As ColumnHeader
'Add some columns
Set colx = ListView1.ColumnHeaders.Add(, , "Filename")
Set colx = ListView1.ColumnHeaders.Add(, , "Type")
Set colx = ListView1.ColumnHeaders.Add(, , "Size")
Set colx = ListView1.ColumnHeaders.Add(, , "Date")
'Add an item.
Set itmx = ListView1.ListItems.Add(, , "Abstract.exe", 1, 1)
itmx.SubItems(1) = "Program File"
itmx.SubItems(2) = "15 KB"
itmx.SubItems(3) = "10/10/1999"
'Set the listview to report
ListView1.View = lvwReport
Unfortunately I am restricted to using the ListView control!
Thanks in advance.
Keith