T
Tom John
Hi
I have a ListView that i want to be able to modify the color of
particular items depending on whether the value of the item they are
about to be replaced with is higher, lower or the same:
With QueueListItem.SubItems(ItemCount)
If .Text = DataRow.Item(ItemCount) Then
.ForeColor = Color.Black
ElseIf .Text < DataRow.Item(ItemCount) Then
.ForeColor = Color.Red
ElseIf .Text > DataRow.Item(ItemCount) Then
.ForeColor = Color.Green
End If
.Text = DataRow.Item(ItemCount)
End With
However the color of the items always remain black. If i stick a
message at the end:
msgbox(.ForeColor) it returns the colour i just set it to which is a
bit wierd i think.
Any ideas?
Thanks
Tom
I have a ListView that i want to be able to modify the color of
particular items depending on whether the value of the item they are
about to be replaced with is higher, lower or the same:
With QueueListItem.SubItems(ItemCount)
If .Text = DataRow.Item(ItemCount) Then
.ForeColor = Color.Black
ElseIf .Text < DataRow.Item(ItemCount) Then
.ForeColor = Color.Red
ElseIf .Text > DataRow.Item(ItemCount) Then
.ForeColor = Color.Green
End If
.Text = DataRow.Item(ItemCount)
End With
However the color of the items always remain black. If i stick a
message at the end:
msgbox(.ForeColor) it returns the colour i just set it to which is a
bit wierd i think.
Any ideas?
Thanks
Tom