Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WinForm's ListView loses fore color

Status
Not open for further replies.

BKQc

Programmer
Jul 26, 2002
118
CA
I have a little VB.Net 4.0 WinForm app which contains a ListView. Depending on the content of one of the columns, I get the foreground color to change. The items are added live by a background process and the color set before adding to the list.

The problem is that as soon as either a new element is added, I click on an element or I scroll (vertically - horizontal scroll is fine), the forecolor resets to black. The only to get it back is to move any windows over it or scroll horizontally.

I've found a lot of posts of people having similar while not identical problem but no suitable solution.

Any help or hint will be appreciated! Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top