@jmcilhinney:
ok I am using now (which is match more easier
could remove the whol.e class)the following line to get a value from the appsettings
Code:
cstMonthView.BColor1 = ConfigurationManager.AppSettings.Get("ABC")
but and sorry jmcilhinney when i do the following line of code
Code:
ConfigurationManager.AppSettings.Set("ABC", "Red")
the value is only temporary availible.
After starting the app again the Value "Red" is not in the app.config
So it seams to me the value are never writen to the key in the app.config
For simplicity i replaced here the org code with dummy Values and keys.
The original Lines would be for get
Code:
Color.FromName(ConfigurationManager.AppSettings.Get(My.Resources.KonfigKalenderBackColor1))
and for set
Code:
cstMonthView.BColor1 = Color.FromName(ConfigurationManager.AppSettings.Get(My.Resources.KonfigKalenderBackColor1))