B
Barry Mossman
Hi,
I am using C#. My WinForm project has a config file created by VS2005
containing some user scoped properties. It has setup as the config file as
follows:
<userSettings>
<MyNameSpace.Properties.Settings>
<setting name="MyProperty" serializeAs="String">
<value>"aaa"</value>
</setting>
</MyNameSpace.Properties.Settings>
</userSettings>
I can easily access the property value in a type-safe manner in my WinForm
via:
Properties.Settings settings =
MyNameSpace.Properties.Settings.Default;
MessageBox.Show(settings.MyProperty);
My WinForm uses some BO's from a dll. How can I access the config properties
from within the dll?
The class which contains the property specification is marked internal to
the WinForm exe.
I have read the helptext regarding ApplicationSettingBase and
ConfigurationManager classes. These are both new with .Net 2.0, so they most
be both current technologies. Neither sections of helptext refer to the
other. I can't understand what job each of them are trying to do, or how
they relate to each other.
If one wants to access the calling user's config info from a dll, which
facility should I be using?
thanks
Barry Mossman
I am using C#. My WinForm project has a config file created by VS2005
containing some user scoped properties. It has setup as the config file as
follows:
<userSettings>
<MyNameSpace.Properties.Settings>
<setting name="MyProperty" serializeAs="String">
<value>"aaa"</value>
</setting>
</MyNameSpace.Properties.Settings>
</userSettings>
I can easily access the property value in a type-safe manner in my WinForm
via:
Properties.Settings settings =
MyNameSpace.Properties.Settings.Default;
MessageBox.Show(settings.MyProperty);
My WinForm uses some BO's from a dll. How can I access the config properties
from within the dll?
The class which contains the property specification is marked internal to
the WinForm exe.
I have read the helptext regarding ApplicationSettingBase and
ConfigurationManager classes. These are both new with .Net 2.0, so they most
be both current technologies. Neither sections of helptext refer to the
other. I can't understand what job each of them are trying to do, or how
they relate to each other.
If one wants to access the calling user's config info from a dll, which
facility should I be using?
thanks
Barry Mossman