I am trying to find a good system for storing settings that can be changed by the user.
I tried to use the .ini file, but with this I can not save and load some values, for example, colors.
I also tried using XML , but it slowed me down so much that it became useless.
I wanted to know if it is possible to export Settings.settings from the Properties project. If so, how to export to an XML file?
Here is the code I use to call the settings
button1.BackColor = Properties.Settings.Default.ColorINFO; button2.BackColor = Properties.Settings.Default.ColorWARNING; button3.BackColor = Properties.Settings.Default.ColorServer;
Here is the code I use to save the settings
Properties.Settings.Default.ColorINFO = button1.BackColor; Properties.Settings.Default.ColorWARNING = button2.BackColor; Properties.Settings.Default.ColorServer = button3.BackColor; Properties.Settings.Default.Save();
source share