473,320 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

System colours

hi,

i have a richtextbox in a form and its backcolor property is set a system
color (i cannot remember the name) which varies according to the windows xp
style e.g. olive green. when the textbox is the active control in the form,
it changes colour to green. however, when i want to change it back to the old
colour (using the leave event) i cannot pick a system colour. here is my code

MainRTFBox.BackColor = Color. //colour goes here

the intellisense only shows me the standard html colours. is there any
different code whith which i can use system colours?

i hope i have made my question clear. if not, just reply to this message or,
if you must, email me at me*****@gmail.com
--
Alvo von Cossel I of Germany
Nov 17 '05 #1
2 1398
you want to use any other color rather than the standard html colors?

if so then use
Color.FromArgb Method
here is the link to the document

http://msdn.microsoft.com/library/de...margbtopic.asp


"Alvo von Cossel I" <Al************@discussions.microsoft.com> wrote in
message news:72**********************************@microsof t.com...
hi,

i have a richtextbox in a form and its backcolor property is set a system
color (i cannot remember the name) which varies according to the windows
xp
style e.g. olive green. when the textbox is the active control in the
form,
it changes colour to green. however, when i want to change it back to the
old
colour (using the leave event) i cannot pick a system colour. here is my
code

MainRTFBox.BackColor = Color. //colour goes here

the intellisense only shows me the standard html colours. is there any
different code whith which i can use system colours?

i hope i have made my question clear. if not, just reply to this message
or,
if you must, email me at me*****@gmail.com
--
Alvo von Cossel I of Germany

Nov 17 '05 #2
Alvo,

Have you considered using the SystemColors class? It sets the read-only
properties at runtime with the colors that the system is currently using.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Alvo von Cossel I" <Al************@discussions.microsoft.com> wrote in
message news:72**********************************@microsof t.com...
hi,

i have a richtextbox in a form and its backcolor property is set a system
color (i cannot remember the name) which varies according to the windows
xp
style e.g. olive green. when the textbox is the active control in the
form,
it changes colour to green. however, when i want to change it back to the
old
colour (using the leave event) i cannot pick a system colour. here is my
code

MainRTFBox.BackColor = Color. //colour goes here

the intellisense only shows me the standard html colours. is there any
different code whith which i can use system colours?

i hope i have made my question clear. if not, just reply to this message
or,
if you must, email me at me*****@gmail.com
--
Alvo von Cossel I of Germany

Nov 17 '05 #3

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

Similar topics

4
by: Els | last post by:
Hi, I would like an opinion on the following: I have a page which is made up of background-images with transparent linked images in front of it, which on hover show text in CSS popups. Due to...
3
by: CSX | last post by:
Hi I have just loaded Visual Basic.Net. I find the interfact colours very drab, especially compared to Office 2003. How do I change the interface colours (currently greys & white) Ta Carlo
3
by: Peter Williams | last post by:
Hi All, I want to write some javascript for a html page which does the following. Imagine that the page contains a table with 2 columns and 3 rows, e.g.: +---+---+ | A | B | +---+---+
8
by: Doug Laidlaw | last post by:
I tried to grab an image from a Web page the other day. It turned out that the page was made up of three horizontal bands, and part of the image was in each. One band was a JPEG, another was a...
2
by: Phil Stanton | last post by:
When designing a new form or report, the Default ForeColor is often something like -2147483640 which is the colour of Windows text (possibly black) and the default backColor is -2147483643...
4
by: Tim Marshall | last post by:
The report indicated in the send object command below has various colours in it which show nicely when the report is previewed and printed. However, when sent as an attachment to users without...
2
by: S Shulman | last post by:
Hi I can I retrieve the actual colour of the user's system colours but not by checking the actual value of e.g. a form to find out the colour of the system control just directly from the system...
3
by: ..:: Kevin ::.. | last post by:
Hello, Is it possible to pick up the colour values used in the XP themes from within .net? I am wanting to set the back colour of one of my forms to the light shade of the theme I am using. ...
1
by: leenadiwan | last post by:
Hi All!! We are doing a POC currently wherein we need to get the System colours in the JSP file. Example: If user has set a specific theme, we want to be able to get the theme details through...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.