Valhalla Legends Forums Archive | General Programming | How can you have 1 ListView with 2 ListImages

AuthorMessageTime
sPlOrYgOn
I've been trying to make 1 ListView with 2 ListImages, 1 ListImage with Product Icons and another with Lag Icons but everything I try doesn't seem to work...
If anyone can help me it'd be great!
July 31, 2003, 1:58 AM
Camel
Make sure you have an ImageList with product icons and one with ping icons (they can be the same one). Then set the 'Icons' property of your ListView to the ImageList with the product icons and the 'SmallIcons' property to the ImageList with the ping icons. You will also need two columns: One for the product icon and name, and the other for the ping icon.

[code] With lvUsers.ListItems.Add(, , sName)
...
.SmallIcon = GetIcon(StatSTr, Flags) 'this is the product icon
.ListSubItems.Add , , Ping, LagBars(GetLag(Ping, Flags)) 'this is the lag icon
...
End With[/code]
July 31, 2003, 5:07 AM
sPlOrYgOn
That makes all the Icons Product Icons :-\
July 31, 2003, 8:29 PM

Search