Using an open source application that is built on the .NET framework. It uses the Color Picker standard dialog box, which includes the ability to define custom colors. Is there a way to export the color definitions from one computer so they can be transferred to a second (or many…) computers?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Save custom color (.net 2.0)
Home » Forums » Developers, developers, developers » DevOps Lounge » Save custom color (.net 2.0)
- This topic has 7 replies, 2 voices, and was last updated 17 years, 8 months ago.
AuthorTopicWSjacksonmacd
AskWoody LoungerOctober 18, 2007 at 3:53 am #445423Viewing 1 reply threadAuthorReplies-
WScharlotte
AskWoody LoungerOctober 20, 2007 at 10:40 pm #1080400You should be able to save the settings to an xml file and then read that into other apps. Caution: The same colors vary on machines depending on the type and brand of monitor and the video cards and settings in the computers, so don’t count on the same color on every box. Custom colors are asking for trouble, because a machine wil a different saturation setting might not display that color at all. Laptops now have hi-res monitors, but the color can vary radically between a laptop and a desktop machine due to the video cards, if nothing else.
-
WSjacksonmacd
AskWoody LoungerOctober 21, 2007 at 12:24 am #1080416Thanks for the tip about colour differences, Charlotte. I will keep that in mind. Not sure what you meant by saving the settings into an xml file — I don’t see any mechanism in the color dialog for doing that.
I dug around in the Registry, and found what I was looking for. Turns out that the application saves the custom colours into the HKCUSoftwareVB and VBA SettingsCustomColors key. I should be able to transfer that key from one computer to another, keeping in mind your caution about colours rendering differently on different computers.
The application is a mapping program, and it is important to exercise some control over the colour palette. I need a gradient of colours from light to dark in a single shade, so the maps convey the proper relationship when viewed on-screen in colour, as well as to reproduce properly on a monochrome laser printer. Custom colours seems like the only way to accomplish that task.
-
WScharlotte
AskWoody LoungerOctober 21, 2007 at 2:07 am #1080433There are a variety of ReadXML and WriteXML methods available through datasets, along with a feast of other methods for handling xml files. The problem with using the registry these days is that some companies lock their registries down so tight that you can’t do that. We have clients who have made the user permissions so stringent that we no longer rely on registry keys to control our applications. Instead we write settings to xml files in the Document & SettingsAll UsersApplication Data subfolder where we put the application itself. If you’re working with something internal to your company and can use registry settings, then there’s no barrier to doing it that way. But once the mechanisms are built for storing values in xml and retrieving them, that’s even simpler and doesn’t run afoul of any registry restrictions.
-
WSjacksonmacd
AskWoody LoungerOctober 21, 2007 at 8:20 am #1080441If I understand you correctly, there is no built-in method for Windows to persist the custom colors, and that the application itself is writing into the Registry. And since it is becoming less reliable to write into the Registry, the application should change its behaviour, and persist its information in xml files rather than the Registry. Is that correct?
I had been told (not by the author, but by another user who *seems* to be in the know), that application program was *not* persisting the custom colors, but that Windows was performing that function. I think you are telling me otherwise. I did a quick test using VB .Net 2005 Express by defining a custom color. Closed and restarted the .Net environment, and found that the custom color had disappeared. This supports what I understand you to be saying.
I appreciate your comments.
-
-
-
-
WSjacksonmacd
AskWoody Lounger -
WScharlotte
AskWoody LoungerOctober 21, 2007 at 8:11 pm #1080465Ah, I see. No, and I don’t recommend that you try to find a way to change the system colors from your application. Changing system settings is invasive and can get you in big trouble with the users and the IT department.
What you need to do is set the colors for your application only, and that’s where the xml file comes in. When the application loads, it can read the xml file and use the settings to create the colors you need IN YOUR APPLICATION. Create a class that handles returning the values for particular color settings and then have your forms and reports call into that class to set their own colors. Then no matter what odd color scheme the user may have selected, your application will display the information in the colors you decide on wherever it’s important. For example, we want lines and shading on reports to appear in several shades of gray, although we allow for an override by the application’s admin through a xml file we read in when the app launches. If you use System colors, like ControlText, etc., for the rest of your application, it will respond to the user settings for color, while you can control the colors when a specific screen is loaded.
-
WSjacksonmacd
AskWoody Lounger
-
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Windows Spotlight broken on Enterprise and Pro for Workstations?
by
steeviebops
3 hours, 8 minutes ago -
Denmark wants to dump Microsoft for Linux + LibreOffice
by
Alex5723
4 hours, 35 minutes ago -
How to get Microsoft Defender to honor Group Policy Setting
by
Ralph
3 hours, 45 minutes ago -
Apple : Paragon’s iOS Mercenary Spyware Finds Journalists Target
by
Alex5723
13 hours, 54 minutes ago -
Music : The Rose Room – It’s Been A Long, Long Time album
by
Alex5723
14 hours, 59 minutes ago -
Disengage Bitlocker
by
CWBillow
4 hours, 57 minutes ago -
Mac Mini M2 Service Program for No Power Issue
by
Alex5723
16 hours, 59 minutes ago -
New Win 11 Pro Geekom Setup questions
by
Deo
1 hour, 40 minutes ago -
Windows 11 Insider Preview build 26200.5651 released to DEV
by
joep517
1 day ago -
Windows 11 Insider Preview build 26120.4441 (24H2) released to BETA
by
joep517
1 day ago -
iOS 26,, MacOS 26 : Create your own AI chatbot
by
Alex5723
1 day, 4 hours ago -
New PC transfer program recommendations?
by
DaveBoston
5 hours, 11 minutes ago -
Windows 11 Insider Preview Build 22631.5545 (23H2) released to Release Preview
by
joep517
1 day, 8 hours ago -
Windows 10 Build 19045.6029 (22H2) to Release Preview Channel
by
joep517
1 day, 8 hours ago -
Best tools for upgrading a Windows 10 to an 11
by
Susan Bradley
20 hours, 36 minutes ago -
The end of Windows 10 is approaching, consider Linux and LibreOffice
by
Alex5723
39 minutes ago -
Extended Windows Built-in Disk Cleanup Utility
by
bbearren
9 hours, 33 minutes ago -
Win 11 24H2 June 2025 Update breaks WIFI
by
dportenlanger
2 days, 3 hours ago -
Update from WinPro 10 v. 1511 on T460p?
by
CatoRenasci
1 day, 1 hour ago -
System Restore and Updates Paused
by
veteran
2 days, 5 hours ago -
Windows 10/11 clock app
by
Kathy Stevens
1 day, 16 hours ago -
Turn off right-click draw
by
Charles Billow
2 days, 9 hours ago -
Introducing ChromeOS M137 to The Stable Channel
by
Alex5723
2 days, 12 hours ago -
Brian Wilson (The Beach Boys) R.I.P
by
Alex5723
1 day, 6 hours ago -
Master patch listing for June 10, 2025
by
Susan Bradley
2 days, 14 hours ago -
Suggestions for New All in One Printer and a Photo Printer Windows 10
by
Win7and10
1 day, 17 hours ago -
Purchasing New Printer. Uninstall old Printer Software First?
by
Win7and10
2 days, 20 hours ago -
KB5060842 Issue (Minor)
by
AC641
1 day, 8 hours ago -
EchoLeak : Zero Click M365 Copilot leak sensitive information
by
Alex5723
3 days, 3 hours ago -
24H2 may not be offered June updates
by
Susan Bradley
1 day, 19 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.