UserControl Help

  • Thread starter Thread starter Dino Buljubasic
  • Start date Start date
D

Dino Buljubasic

Hi,

I have built a user control that contains several ListView controls
displaying various data. ListViewItems display text in different
colors.

I have noticed however that when I move another window (say a word
docuemnt or whatever else) over my application window, the font color
of each list view item changes to gray.

How can I fix this? I am using C# 2.0.

Thank you,
_dino_
 
That does not really explain much.

The event is another window over the form holding my user control.

Forcing color means repainting or looping through each list view and
reseting their items' ForeColor to old value. This in inefficient and
should sertainly not be delt this way.

Any other suggestions?

Thank you,
_dino_
 
For those interested, I have found out that this is rather an IDE
issue than coding issue. When I run my application from IDE, this
repainting problem occurs, when I run it from compiled .exe, the
problem is gone.

_dino_
 
Back
Top