You can add strings you don't want to hardcode to the Resources. This can
be done easily by double-clicking on the project to bring up the properties,
and clicking on the <Resourcestab.
You can retrieve anything you store in here using
My.Resources.NameYouGaveIt,
where NameYouGaveIt is what you called it.
This is handy for storing stuff like messagebox strings you use a lot. I use
it to store
report headings with my company name on it, and disclosure statements that
get
printed on the bottom of reports, because they tend to change, and this way
I
only have to change them in one place.
If you're programming in C#, I'm sure there's some way to get to those
Resource
strings, but I don't know what it is.
Good luck.
Robin S.
-----------------------------------------------
"HLong" <HL***@discussions.microsoft.comwrote in message
news:CB**********************************@microsof t.com...
Hi, I am using the app.config file to store the ConnectionString to the
data.
I want to add a list of table names to this file so I could populate a
combo
on FormLoad.
I found very easy to get the ConnectionString using the
ConfigurationManager.ConnectionStrings("name"), whoever I could not find
any
examples of adding a list of values to the config file and retreaving it.
Could someone give a hand or an example.