hi
i want to create dynamically new Property.Settings at runtime i tried this code but not worked t
also no changes in setting (i am using wpf).can anyone help pls?

- var property = new System.Configuration.SettingsProperty("propertyName");
- property.PropertyType = typeof(bool);
- property.DefaultValue = true;
- Properties.Settings.Default.Properties.Add(property);
- Properties.Settings.Default.Save();
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rajanikant HawaldarRank #110 · 20.3K reputationPosted Apr 2, 2020, 5:21 PM EDT
Amin Memar185 reputationPosted Apr 3, 2020, 10:18 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Apr 3, 2020, 6:17 PM EDT