Best place & method for storing historical combo box data

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

Guest

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,

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.
 
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 said:
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]
- (e-mail address removed)

WB said:
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top