PC Review


Reply
Thread Tools Rate Thread

default background color name?

 
 
Slickuser
Guest
Posts: n/a
 
      1st Dec 2007
What's the equivalent color of the default background in C#?

I want set the a circle to that color after I draw it.

Thanks.

C# color link
http://www.flounder.com/csharp_color_table.htm
 
Reply With Quote
 
 
 
 
Bob Powell [MVP]
Guest
Posts: n/a
 
      1st Dec 2007
SystemColors.Control

Note that this may change if the user changes themes or preferences.

--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.


"Slickuser" <(E-Mail Removed)> wrote in message
news:28d68a4a-06bc-4adb-8c54-(E-Mail Removed)...
> What's the equivalent color of the default background in C#?
>
> I want set the a circle to that color after I draw it.
>
> Thanks.
>
> C# color link
> http://www.flounder.com/csharp_color_table.htm


 
Reply With Quote
 
Family Tree Mike
Guest
Posts: n/a
 
      1st Dec 2007
"Slickuser" wrote:

> What's the equivalent color of the default background in C#?
>
> I want set the a circle to that color after I draw it.
>
> Thanks.
>
> C# color link
> http://www.flounder.com/csharp_color_table.htm
>


Understand though that you cannot change the color of the ellipse after the
FillEllipse call. As Bob said, it is usually SystemColors.Control, but
Control.BackColor should work as well.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change default background color. =?Utf-8?B?Q29yeQ==?= Microsoft Word Document Management 2 17th Dec 2005 03:33 PM
Default Border, Font Color, and Cell Background Color Elijah Microsoft Excel Misc 1 28th Oct 2005 04:10 PM
default background color =?Utf-8?B?R3JlZ2cgU2hlcGhlcmQ=?= Windows XP Customization 4 11th Feb 2005 05:58 PM
Default background Color =?Utf-8?B?TWVnbGFkb24=?= Windows XP Customization 1 7th Jan 2005 01:30 AM
The BACKGROUND COLOR OF THE COMMAND BUTTON FACES RESET TO THE DEFAULT COLOR Alva Dean Microsoft Excel Programming 2 8th Mar 2004 08:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:53 AM.