Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2006

Tip: Looking for answers? Try searching our database.

controlpaint.drawfocusrectangle(g,r) colors

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
m - 10 Feb 2006 19:46 GMT
when using the 2-parameter form of this shared function, where the hell is it getting the colors from? neither of the colors appear in my system palette; one of them is black, which is not one of my system colors. the other is close to 2 of my "shadow" colors, but doesn't match. I really wish microsoft would document stuff like this, but they don't.
Sericinus hunter - 10 Feb 2006 20:17 GMT
Reflector shows the following code in System.Windows.Forms.dll:

public static void DrawFocusRectangle(Graphics graphics, Rectangle rectangle)
{
      ControlPaint.DrawFocusRectangle(graphics, rectangle, SystemColors.ControlText, SystemColors.Control);
}

> when using the 2-parameter form of this shared function, where the hell
> is it getting the colors from? neither of the colors appear in my system
> palette; one of them is black, which is not one of my system colors. the
> other is close to 2 of my "shadow" colors, but doesn't match. I really
> wish microsoft would document stuff like this, but they don't.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.