By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,453 Members | 1,562 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,453 IT Pros & Developers. It's quick & easy.

Saving User Application Data

P: n/a
I am trying to save a location to a database using the registry...I've been successful in this, but is there another way I can save this. I have searched on the net and have found that saving the info to an xml file is a good idea. My question is whether or not I can save this in a config file in C# (if so does anyone know how to create and use a file like this). Or can the information be saved somewhere else in the application! Thanks in advance for any feedback on this!
Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Ed,

XML, Database and Registry are all possible choices. Which one is the best
choice depends on the situation.

Check out the Configuration Management Application Block, it may be just
what you're looking for.
http://msdn.microsoft.com/library/de.../html/cmab.asp

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
"Ed P." <an*******@discussions.microsoft.com> wrote in message
news:7C**********************************@microsof t.com...
I am trying to save a location to a database using the registry...I've

been successful in this, but is there another way I can save this. I have
searched on the net and have found that saving the info to an xml file is a
good idea. My question is whether or not I can save this in a config file
in C# (if so does anyone know how to create and use a file like this). Or
can the information be saved somewhere else in the application! Thanks in
advance for any feedback on this!
Nov 15 '05 #2

P: n/a
Thanks for the link Rob...here is what I am looking for and maybe you can tell me which is the best choice. I am going to use a OpenFileDialog object, I will retreive the file I wish to use and use the OpenFielDialog.FileName property to be saved in .config file or XML File. I am currently saving this to the registry and it's working for me. But I would like to store this somewhere else

thanks for any feedback you can provide!
Nov 15 '05 #3

P: n/a
You're currently save *what* in the registry? The configuration data or the
path to the configuration file?
"Ed P." <an*******@discussions.microsoft.com> wrote in message
news:25**********************************@microsof t.com...
Thanks for the link Rob...here is what I am looking for and maybe you can tell me which is the best choice. I am going to use a OpenFileDialog object,
I will retreive the file I wish to use and use the OpenFielDialog.FileName
property to be saved in .config file or XML File. I am currently saving
this to the registry and it's working for me. But I would like to store
this somewhere else!
thanks for any feedback you can provide!

Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.