473,385 Members | 1,912 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,385 software developers and data experts.

How to change the system colors programatically

This sounds like a trivial task: I'd like to change the default color
settings for certain system elements (e.g. Control, Meu, Window) inside a C#
program programatically during program initialization. All UI controls which
have one of their color property set to one of these settings (e.g.
button1.BackColor = System.Drawing.SystemColors.Control) shall be reendered
according to the customized control color.

These settings shall be valid for all threads in the application, all UI
appropriate UI elements, and all dynamically loaded assemblies.

Changing the registry will not do the job because the settings shall only be
valid in the application context. And changing each individual control seems
to be too cumbersome.

Any help is highly appreciated!
Nov 15 '05 #1
1 14686
Schuntermann,

You will have to change each element to do this. The reason is that
these settings are system-wide, and can not be changed on an
application-by-application basis (even through the API). You will have to
custom paint each UI element.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Schuntermann Joerg (IFAT IT MFG COC MES MAC)"
<Jo****************@infineon.com> wrote in message
news:bg**********@newssrv.muc.infineon.com...
This sounds like a trivial task: I'd like to change the default color
settings for certain system elements (e.g. Control, Meu, Window) inside a C# program programatically during program initialization. All UI controls which have one of their color property set to one of these settings (e.g.
button1.BackColor = System.Drawing.SystemColors.Control) shall be reendered according to the customized control color.

These settings shall be valid for all threads in the application, all UI
appropriate UI elements, and all dynamically loaded assemblies.

Changing the registry will not do the job because the settings shall only be valid in the application context. And changing each individual control seems to be too cumbersome.

Any help is highly appreciated!

Nov 15 '05 #2

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

Similar topics

9
by: michael | last post by:
I have many links on a page, but for example sake, these two: <a href="bla1.html" id="link1">bla1</a> <a href="bla1.html" id="link2">bla1</a> I use a Javascript function to change the link...
18
by: Denny Schierz | last post by:
hi, i want to change my link colors in the p class="suchen": That is my html: <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//DE"...
1
by: Srinivas Kollipara | last post by:
Hello all, i have a problem to change system time programatically in C#. Can Any one help me with that. thanks -- Srinivas L.Kollipara
1
by: kishor | last post by:
How do I access the system colors in asp.net web page. Can I have some guide lines/ some sample code for this. Regards, Kishor
1
by: Keith Smith | last post by:
How do I change the colors of a tabControl (including the tabs themselves). I only see the option to change the color of each tabPage.
1
by: ChPhilippart | last post by:
Does anybody know if it is possible to change the system colors settings? I tried to start a new systemcolors class, but don't know how. Thank your
2
by: Richard | last post by:
How can we change/reset the system date. Thanks in advance. RC
2
by: Michael | last post by:
Hi. I need to get in classical ASP page color of < Button Face object of MS Windows. Is there any standard function in vbscript? Please help. Thanks
1
by: MBMSOFT | last post by:
Any idea how to change system keyboard language with vba I tried changing keyboard property in the control property and it works but i need change in one control only, and if i change property...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.