I am not able to write "Properties.Settings.Default". It is not coming in the dropdown list. Is there any namespace that we can add?
How to add Properties.Settings.Default in c#
6.1k views Asked by B.Vyas At
5
There are 5 answers
0
On
Set your Setting in your project go to Project => property => go to setting
Set your element (string,int, ecc...)
Save from program all values
Properties.Settings.Default.User = txtUser.Text; Properties.Settings.Default.Password = txtPass.Text; Properties.Settings.Default.Save();
if you use Windows 10, this is the directory of setting Values: C:\Users\AppData\Local<ProjectName.exe_Url_somedata>\1.0.0.0<filename.config>
Add your project namespace to the Properties namespace. The default namespace defined in the project settings.
For instance if your project default namespace is MyApp.