[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.drawing

ControlPaint.DrawFocusRectangle and color contrast issue

devdiscuss

12/17/2004 8:50:00 PM

I'm trying to mimic the VS.NET winforms selection rectangle behavior, and
have come fairly close with DrawFocusRectangle. The VS.NET rectangle
appears to show an inverse color of the surface it is over. For e.g. white
over black, black over white, when dragging across the designer. Is there
an easy way to accomplish this so that regardless of my backcolor, I will
always have a contrasting selection rectangle? With certain backcolors now,
it becomes difficult to see the rectangle.

Thanks!