System colours

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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 (e-mail address removed)
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top