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

  • Thread starter Thread starter ganeshgebhard
  • Start date Start date
G

ganeshgebhard

Guest
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.

39336a0822b715283eba4d08e37c1596._.png



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

29353659b51c2791c908d8ad8f9e5057._.png


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

4ad7778f13794d8746fac34a94b6d5c3._.png


This works, but when I close the program, the custom colors will be deleted. So when I start the program again, it didnt 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 dont ask too much and that someone can help.

Thanks in advance!

Ganesh Gebhard

Continue reading...
 
Back
Top