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

Best place & method for storing historical combo box data

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.