Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

C# - let ColorDialog save the costum colors the users itself builds

$
0
0

Hi all,

I have a program that makes a screenshot of a pictureBox with label and which allows the users to save this image using a saveFileDialog1.

I have also build an option which allows users to choose there own colors as background, using ColorDialog1.

So when the user chooses a color, it will be added to the custom color.

This works, but when I close the program, the custom colors will be deleted. So when I start the program again, it didn't save the custom colors.

Now I have two questions:

1) Is it possible for the program to remember the colors that the user made before? This so that the user easily can select the custom colors he/she made earlier. If yes, how?

2) When a new color is chosen as background, I would like that the program remembers this, so that the next time the program will open, the background is the same as the user left it.

I hope that I don't ask too much and that someone can help.

Thanks in advance!

Ganesh Gebhard


Viewing all articles
Browse latest Browse all 2535

Trending Articles