title: Change the location of an object programmatically
body: <p>I've tried the following code: </p>
  
  <pre><code> this.balancePanel.Location.X = this.optionsPanel.Location.X;
  </code></pre>
  
  <p>to change the location of a panel that I made in design mode while the program is running but it returns an error: </p>
  
  <blockquote>
    <p>Cannot modify the return value of 'System.Windows.Forms.Control.Location' because it is not a variable.</p>
  </blockquote>
  
  <p>So how can I do it?</p>