Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forumguidelines
Amin Memar
1.9k
138
7.6k
create Properties.Setting at runtime
Apr 2 2020 5:41 PM
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();
Reply
Answers (
3
)
Asp.net Session timeout
c# developement