Saving User Application Data

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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/default.asp?url=/library/en-us/dnbda/html/cmab.asp

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada


Ed P. said:
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!
 
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!
 
You're currently save *what* in the registry? The configuration data or the
path to the configuration file?


Ed P. said:
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!
 
Back
Top