VS2012 Export "User Preferences"

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(); 
+4
source share
1 answer

I fixed it using an XML editor that allows you to read and write to any XML file, with this I can create my own settings file. Thank you all for your help :).

0
source

All Articles