Save Settings in VB.Net or C#

I recommend using Application Settings Property Binding.

There are many options as mrunion mentioned in his good answer, but I think the most simple way in Windows Forms Application is using Application Settings Property Binding. To do so using designer:

  1. Select your CheckBox in design surface
  2. In properties window, at top, expand (ApplicationSettings), open dropdown for Checked property and select (New...) at bottom of dropdown.
  3. Add your desired property with default value.
  4. Save settings in somewhere like Form_Closing event:

    • C#: Properties.Settings.Default.Save();
    • VB: My.Settings.Save()

(ApplicationSettings) in property window:

enter image description here

Leave a Comment