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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Apr 3, 2020, 10:17 PM
Amin MemarPosted Apr 3, 2020, 2:18 PM
Rajanikant HawaldarPosted Apr 2, 2020, 9:21 PM