Jason Axelrod
Jason Axelrod

Reputation: 7805

Export/Import Settings in Visual Studio .NET?

I want to create a button in one of my programs. When they click the button, they can export all settings in the program to an XML file. And then of course, there will be another button to import settings from an XML file.

Is there a built in function for this, or do I need to make my own?

Upvotes: 1

Views: 231

Answers (1)

rag9
rag9

Reputation: 504

If you're using a newer version of .NET (2.0 or greater), I would recommend using the app.config. It's a handy way to store and retrieve user data in an XML format for an application.

Here's a nice little tutorial that explains how to do some simple reading and writing in the app.config: How to read and write settings in App.config with C#

Hope that helps.

Upvotes: 1

Related Questions