Hello all,
We have a bit of a problem with application settings and user control. In
short, we have developed a user control that should, as it happenes, get a
value stored in application settings of its host application. The app.config
of the host application looks like this:
<appSettings>
<add key="SQLConnect ionString" value="some value" />
</appSettings>
<userSettings >
<Test_Control_L ibrary.My.MySet tings>
<setting name="UserSQL" serializeAs="St ring">
<value>User</value>
</setting>
</Test_Control_Li brary.My.MySett ings>
</userSettings>
Now, our control can read the SQLConnectionSt ring value from <appSettings>
by using:
System.Configur ation.Configura tionSettings.Ap pSettings("SQLC onnectionString ")
However, what we really need to get is the value stored in the UserSQL
setting under <userSettingsan d we haven't got a foggiest how to do it. The
reason behind using user settings is that the UserSQL value can change
during the course of work and hence all controls should reflect that change.
Any help would be greatly appreciated.
BR,
GAZ