save settings

Hi to all,

how can i save the settings made by a user in a win app, in order to reload them the

next time the application start.

10x




Answer this question

save settings

  • AdeptBlue

    you have a few options. One could be to save them into a database (can be overkill), one can be to serialize them then deserialize them again, the other could be to use the Application Settings in .NET (probably what you are after)

    take a look at this:

    http://msdn2.microsoft.com/en-us/library/0zszyc6e.aspx

    http://msdn2.microsoft.com/en-us/library/k4s6c3a0.aspx



  • Kamii47

    If you are working with the settings stored in data objects. You can just write out to XML or even a comma/whitespace separated file and then just read them in when loading your program. Just be sure to provide either hard-coded defaults or a default file with the application.


  • ArcPadNewbie

    Application Settings or Client Setting feature in .Net 2.0 is the best bet and extremely simple to incorporate any any Windows Application without writing even a code, You can also detect or make the modification to them programatically, it also raises event if setting are modified by user or applicaiton itself, You can Save, Update and Load the Default Settings with which Application was installed with 2-3 lines of code!

    There are many articles available on the internet about Client Settings see GotDotNet websites there is a good Faq about Client Settings! And Search google for some good article about them!

    Best Regards,



  • save settings