Access My.Settings from class library

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

Guest

Hi,
I'm partitioning my app into several tiers.
Is there a way to read/write My.Settings between tiers?
My only seem to work locally in the exe or dll...

Best regards,
kk
 
kkarre said:
Hi,
I'm partitioning my app into several tiers.
Is there a way to read/write My.Settings between tiers?
My only seem to work locally in the exe or dll...

Best regards,
kk


Interesting question. I noticed this too. I'm not sure how to do it or
even if it's possible.



Robin
 
If you are using Application settings and not user settings, you can
access them the old .net1.1 way by using [I don't have VS2005 yet :(]

strValue =
System.Configuration.ConfigurationSettings.AppSettings("strSettingName")

This will return a string, so cast it to something else if you need to.

blnValue =
CBool(System.Configuration.ConfigurationSettings.AppSettings("strSettingName"))
 

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