471,309 Members | 1,066 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,309 software developers and data experts.

UserControl Help

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_
Jan 11 '06 #1
3 1115
maybe you can catch the event and force the color you want back

marcel

Dino Buljubasic wrote:
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_

Jan 11 '06 #2
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_

On Wed, 11 Jan 2006 19:07:07 -0300, Marcel
<ma****@dogmagraphics.com.br> wrote:
maybe you can catch the event and force the color you want back

marcel

Dino Buljubasic wrote:
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_


Jan 11 '06 #3
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_

On Wed, 11 Jan 2006 20:45:53 GMT, Dino Buljubasic
<di**@noplacelikehome.com> wrote:
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_


Jan 23 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Raed Sawalha | last post: by
12 posts views Thread by Joe | last post: by
9 posts views Thread by Marcelo Cabrera | last post: by
6 posts views Thread by MeowCow | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.