Hi, I've trawled a few forums and there is some discussion that the following is either not possible or requires a more complex solution using the graphics capability.
However as a noob, there appears to be the option (through intellitype) to set the foreground and background colors for the sub items within a Listview.
The following does not work; is that because I'm doing something silly or it just not that simple ?![]()
If a value returns TRUE then I'm setting a Text value and trying to color it.
any thoughts out there? thanks, J.Code:If ValueStatus = True Then LstStatus.Items(Index).SubItems(1).Text = CStr(ValueStatus) LstStatus.Items(Index).SubItems(1).BackColor = Color.Green Else LstStatus.Items(Index).SubItems(1).Text = CStr(ValueStatus) LstStatus.Items(Index).SubItems(1).BackColor = Color.LightGray End If




Reply With Quote
