473,498 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Best place & method for storing historical combo box data

WB
I have an app that will need to store hostorical data (path & filenames) in a
combo box (so that the user doesn't have to type in the same data each time
the app is restarted). Is it best to keep this data in the registry, or in
app.config?

I've already asked about using app.config in this context, in a different
question in this forum. However if the registry is the preferred method, how
should this list of data be stored & retrieved in the registry?

Thanks,
--
Bill Baker
Aug 7 '06 #1
2 2733
Bill,

I would do neither. The app config file is more for configuration, not
application data, which is what you are trying to do.

I would keep this list in a separate file, and load that file on
startup, or on demand from the user. I definitely don't think that the
registry is a good place for this kind of information either.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"WB" <WB@discussions.microsoft.comwrote in message
news:02**********************************@microsof t.com...
>I have an app that will need to store hostorical data (path & filenames) in
a
combo box (so that the user doesn't have to type in the same data each
time
the app is restarted). Is it best to keep this data in the registry, or in
app.config?

I've already asked about using app.config in this context, in a different
question in this forum. However if the registry is the preferred method,
how
should this list of data be stored & retrieved in the registry?

Thanks,
--
Bill Baker

Aug 7 '06 #2
I agree with Nicholas,

The best place for storing those kind of things is a DB, if you have one
allready, of a text file.

"Nicholas Paldino [.NET/C# MVP]" wrote:
Bill,

I would do neither. The app config file is more for configuration, not
application data, which is what you are trying to do.

I would keep this list in a separate file, and load that file on
startup, or on demand from the user. I definitely don't think that the
registry is a good place for this kind of information either.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"WB" <WB@discussions.microsoft.comwrote in message
news:02**********************************@microsof t.com...
I have an app that will need to store hostorical data (path & filenames) in
a
combo box (so that the user doesn't have to type in the same data each
time
the app is restarted). Is it best to keep this data in the registry, or in
app.config?

I've already asked about using app.config in this context, in a different
question in this forum. However if the registry is the preferred method,
how
should this list of data be stored & retrieved in the registry?

Thanks,
--
Bill Baker


Aug 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
5316
by: SQLDBA | last post by:
I am in the process of evaluating some SQL Performance Monitoring /DBA tool to purchase (For SQL Server 2000). I have the following list of software that I came across and have to finalize which...
9
3248
by: Frances | last post by:
Hi All, * PREMISE * I'm creating an Access form with 150 items subdivided into 20 categories. Multiple categories (and items) can be selected so my user wants checkboxes. All of the options...
4
4242
by: Heather | last post by:
Hi I am desparately looking for advice in relation to storing the results after selecting items from two combo boxes on a Referral form. The first combo box 'ctl Type' displays a full list of...
0
4191
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
2
1989
by: G. Dean Blake | last post by:
We currently distribute a web application to serveral servers for a customer. We have been putting the connection string in our web.config file under <appSettings> <add...
17
7998
by: | last post by:
I have an app that retrieves data from an Access database. At the moment I have the SQL string as a Const in my app. I understand this is not best practice. I don't want the user to have access to...
32
5608
by: David Isaac | last post by:
I have no experience with database applications. This database will likely hold only a few hundred items, including both textfiles and binary files. I would like a pure Python solution to the...
3
4008
by: at_the_gonq | last post by:
Hello, I am hoping to get some guidance on the following scenerio: I have a password protected site where users have various permissions. Are sessions the best way of storing the user's id? ...
2
7013
by: biganthony via AccessMonster.com | last post by:
Hi, I decided to install Office 2003 Service Pack 3 on my home computer to test (in full knowledge that there may be some issues with it). After installation, I have noticed that with a small...
0
7126
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
7168
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,...
1
6891
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
7381
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...
1
4916
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...
0
4595
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3087
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
659
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.