Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Color Dialog

sacsac

Programmer
Dec 10, 2000
182
GB
I' retrieving a color from ColorDialog, and it appears to be in ARGB format. I'm trying to save this in a config file, along with other data, so that I can retrieve later. Can't work out a format to save it in which will convert back into a usable color. ANy ideas?
 
>appears to be in ARGB

well, yes - that's the standard for .NET. Which is why I then find "Can't work out a format to save it in which will convert back into a usable color" a trifle perplexing, since ARGB is the useable colour in .NET ...

Perhaps you can clarify.
 
Well, here's my issue.

I am trying to save a color value (from the colordialog) in a text INI file, which has several configuartion lines, all plain text. I later retrieve this information.

The color returned by colordialog is e.g. "{Name=ffff8000, ARGB(255,255,128,0)}", but I get errors if I try to save this. In what format do I need to save the color for retrieval later on?
 

Part and Inventory Search

Sponsor

Back
Top