473,491 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

default background color name?

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
Dec 1 '07 #1
2 14600
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" <sl*********@gmail.comwrote in message
news:28**********************************@i12g2000 prf.googlegroups.com...
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
Dec 1 '07 #2
"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.

Dec 1 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
13550
by: Kevin Yu | last post by:
When I declare on HTML page <LINK href="mycss.css" type="text/css" rel=stylesheet /> .... <BODY class=myclass> in mycss.css BODY { FONT-WEIGHT: bold; FONT-SIZE: 12px; FONT-FAMILY:...
1
2889
by: ivo.welch | last post by:
dear wizards: How do I control how far to the right a background color extends in a definition list? For example, <dl> <dt style="background-color:blue;">Definition</dt> <dd>Text</dd> </dl>
6
4986
by: Jerry J | last post by:
Is there a way to change the background color of a web form on the server before it is posted? In the pageLoad event I can do it to server controls by adding an attribute, however, how do I do...
6
1912
by: Mark | last post by:
Hello all - I'm trying to incorporate a stylesheet into an ASP.Net page but everytime I include the "LINK" code to the .css file in the HEADER location of the HTML code, the background color that...
1
11456
by: laredotornado | last post by:
Hello, I was wondering if there is any cross-browser CSS way to specify that I want the background color of a readonly input text field to be the same as its parent row. Right now, I have ...
6
10204
by: Jeff North | last post by:
I'm wondering if there is a work-around for the following problem that I've encountered. FireFox is behaving like I expect, IE7 is misbehaving. The main stylesheet has the declaration: html,...
3
2692
by: psbasha | last post by:
Hi, I would like to change the UI default background color ( Grey) to some other color.What is the option in python to play with that? Thanks in advance PSB
0
1591
by: Bint | last post by:
Hi, I want to create 24 bit PNG image files (red, green, blue, alpha) with PHP -- that's easy enough. However, I would like to include a background color value as well, as a default. The...
19
3960
by: david.karr | last post by:
If in my CSS I set the "background-color" property on the "body" element, it only covers the background of the elements defined in the body, up to the current width and height of the page. However,...
0
7115
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7154
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7360
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4881
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4578
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1392
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.