473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Saving User Application Data

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
3 2469
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

138
by: theodp | last post by:
--> From http://www.techdirt.com/articles/20040406/1349225.shtml Microsoft Patents Saving The Name Of A Game Contributed by Mike on Tuesday, April 6th, 2004 @ 01:49PM from the...
13
by: Stuart McGraw | last post by:
I haven't been able to figure this out and would appreciate some help... I have two tables, both with autonumber primary keys, and linked in a conventional master-child relationship. I've...
4
by: dale zhang | last post by:
Hi, I am trying to save and read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp Right now, I saved images without any...
1
by: Bernard O'Flynn | last post by:
Hi I have a pivot table that gets it data from another worksheet in the workbook. I need to update the data worksheet from data in a database (I'm using MS Data Application Block) and get a...
4
by: John Kandell | last post by:
Hi, Would someone be able to shed some light on what is the cost of saving a DataTable to session vs saving a custom object of the same data. For example, let's say I had a DataTable with 1000...
11
by: Tom | last post by:
I am planning on adding a Preferences form to my application and using the Property Grid to display the preferences to the user. What do you think would be the best way to save these preferences...
1
by: Tom | last post by:
I have a large application; lots of forms, multiple dynamic DLLs, etc. I also have, in the appliation, a general 'Preferences' class object (which is in itself a separate DLL, and I just include a...
4
by: Pedro Leite | last post by:
Good Afternoon. the code below is properly retreiving binary data from a database and saving it. but instead of saving at client machine is saving at the server machine. what is wrong with my...
2
by: Tal Shachar | last post by:
Hi, I have a windows application that needs to save some user preferences to an xml and to load it on the next application run. Saving the preferences is done per user. I know that there is a way...
3
by: Nathan Guill | last post by:
I have an interface that works with an Access back-end. I would like to store and/or load user defined query strings per each user (i.e. no user can access another's queries). The idea I had was...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.