title: Can't save Button Position in XML file
body: <p>I have a user control with 10 small buttons (20 x 20).  I am using the following code to allow the user to drag each button along the x axis only.
  I then want to save its X location to a list which can be saved as part of an XML file and then be loaded with the same button locations the next time the app runs.  For some reason, I can't save button location.  Even the message box doesn't show.  What am I doing wrong?</p>
  
  <pre><code>    private Point p;
  
      private void button2_mousedown(object sender, MouseEventArgs e)
      {
          string buttonName = ((Button)sender).Name;
          Button b1 = ((Button)sender);
          if (e.Button == MouseButtons.Left)
          {
              p = e.Location;
          }
      }
  
      private void button2_mousemove(object sender, MouseEventArgs e)
      {
          string buttonName = ((Button)sender).Name;
          Button b1 = ((Button)sender);
          if (e.Button == MouseButtons.Left)
          {
              b1.Left = e.X + b1.Left - p.X;
          }
          int idx = int.Parse(buttonName) - 1;
          scriptIconLocation[idx] = b1.Left;
          //MessageBox.Show(scriptIconLocation[idx].ToString(), "saved location");
          savedSettings.ScriptIconLocation = scriptIconLocation;
          saveSettingsXML(savedSettings);
      }
  </code></pre>