Bill,
I would not store this list in app/settings. Especially the comma delimited
route.
There are a couple of options that I have done:
I usually put a list, which only changes every blue moon its its own little
xml file.
Since you're new to dotNet, do a search for "Strong typed DataSet".
This will allow you to call methods like .WriteXml and LoadXml( string
fileName ).
What I'm saying is that you can store it in a small xml file , and if you
piggy back off your custom strongly typed dataset, you can use those easy to
use methods, especially the LoadXml one.
Secondly, you can write you own "Custom Configuration Handler", and add some
xml to the existing app.config (or web.config) file.
<mystuff>
<state name="Virginia" abbv="VA" />
<state name="North Carolina" abbv="NC" />
<state name="Tennesee" abbv="TN" />
</mystuff>
but it takes some coding/work to get this working. However, learning how to
write a custom config handler is a very good base skill.
go and google this
http://www.google.com/search?hl=en&l...ration+section http://support.microsoft.com/kb/309045/EN-US/
There are multiple options, somebody will post another probably. But those
2 have served me well.
But littering up the app/settings is kinda hacky in my book.
"WB" <WB@discussions.microsoft.comwrote in message
news:F5**********************************@microsof t.com...
I'm just starting out with C# after many years with VB 6.0.
I'm trying to fill a listbox with a list of computer names (almost 100)
from
app.config. First, is app.config the place to store and retrieve this
large
list?
If so, I'm looking for code to obtain the list of computer names from
app.config, and also an example of how the computer names need to be
listed
in app.config.
Thanks,
--
Bill Baker