title: WinForm state from configuration file
body: <p>I would like to extract the state of checkboxes on a form (checked or not) from a configuration file I had manually wrote, whereas the key specify the control name and the value of the tag specify whether to check it or not:  </p>
  
  <pre><code> &lt;configuration&gt;
    &lt;appSettings file="configuration file sample"&gt;  
       &lt;add key="CheckBox1" value="true"/&gt;    
       &lt;add key="CheckBox2" value="false"/&gt;  
    &lt;/appSettings&gt;
  &lt;/configuration&gt;  
  </code></pre>
  
  <p>Using the default <strong>settings</strong> file allows to load it like this:</p>
  
  <pre><code>CheckBox1.Checked = Properties.Settings.Default.CheckBox1State;    
  </code></pre>
  
  <p>and save settings like this:  </p>
  
  <pre><code>Properties.Settings.Default.CheckBox1State = CheckBox1.Checked;  
  </code></pre>
  
  <p>But how can I load and save my own configuration file if I do not use the settings file?</p>