title: Adding a new setting in Settings.setting file
body: <p>This is the code i am using to add a new setting to the settings.settings file but it is not working.</p>
  
  <pre><code>System.Configuration.SettingsProperty property = new System.Configuration.SettingsProperty("CustomSetting");
  
  property.DefaultValue = "Default";
  property.IsReadOnly = false;
  property.PropertyType = typeof(string);
  property.Provider = Properties.Settings.Default.Providers["LocalFileSettingsProvider"];
  property.Attributes.Add(typeof(System.Configuration.UserScopedSettingAttribute), new System.Configuration.UserScopedSettingAttribute());
  
  Properties.Settings.Default.Properties.Add(property);
  // Load settings now.
  Properties.Settings.Default.Reload();
  // Update the user itnerface.
  
  Properties.Settings.Default["CustomSetting"] = txt_Cipher.Text;
  Properties.Settings.Default.Save();
  txt_Cipher.Text = string.Empty;
  </code></pre>
  
  <p>The new setting is not being added in the settings file. This is the new code i have been trying according to sumesh's reply.</p>
  
  <pre><code>System.Configuration.SettingsProperty property = new System.Configuration.SettingsProperty("CI");
                  Properties.Settings.Default["CI"] = txt_Cipher.Text;
                  Properties.Settings.Default.Save();
                  Properties.Settings.Default.Reload();
                  txt_Cipher.Text = string.Empty;
  </code></pre>
  
  <p>I have already created a setting in the settings.setting file as said in the Image by sumesh.</p>