quote:Originally posted by doug65536
AFAIK you can't do that. If you must, use a MSFlexGrid control. That control is completely different from a listview, but does allow you to change a ton of properties on a cell-by-cell basis.
doug65536: Answering a post that is over 3 years old is probably not all that useful.
But just in case someone is actually interested, the correct answer is that you CAN use various foreground colors of items in a listview.
Each listview item has a forecolor property, which can be set to an RGB setting, and each subitem also has a forecolor property which can also be set to an RGB color..
Here is a simple example:
Private Sub Command1_Click()
Dim item As ListItem
Set item = ListView1.ListItems.Add(Text:="Bill")
item.ForeColor = vbGreen
item.SubItems(1) = "Gates"
item.ListSubItems(1).ForeColor = vbRed
This example assumes you have a listview named ListView1 that has at least 2 columns and has its view property set to lvwReport. And, of course, that you have a command button named Command1.
How to use a forum to help solve problems