Hi,
I am just starting out with C# development and have a question. This is my first question in the forum btw. Any help is very much appreciated in advance!
I have a windows form where I have a menustrip and a menu item called color. Clicking on color menu item opens the ColorDialog. Selecting any color on the dialog changes the background color of the form. I used the properties.settings to save and retrieve this color. Everything works good until here.
Now, I am trying to persist the custom colors on the color dialog if the user adds custom colors to the 16 boxes.
Could you please tell me how I should go about it? Thanks a lot!!
Jay
[Jeez... I am trying to paste the code here, but CTRL+V just doesn't work :( ]
Loading
FroglegPosted Apr 11, 2011, 3:57 PM
With the color dialog, I think the only way to get the color is when the user clicks OK on the dialog- and that will be the selected box
If you want to save colors you may need to create your own - a panel filled with labels whose backcolor represents the chosen color and save these to settings