title: Move Controls Location Dynamically
body: <p>I made a very simple app where have 4 radio buttons and check boxes like below image:</p>
  
  <p><a href="https://i.stack.imgur.com/0Aai4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Aai4.png" alt="enter image description here"></a></p>
  
  <p>The radio buttons position will be triggered when one of the check boxes is checked.</p>
  
  <p>Example: RadioButton1 is on position 40, 40, and the radioButton2 is on position 100, 40.. When the first check box is checked (checkBox1), then the RadioButton1 will be disappear and the radioButton2 will be take the RadioButton1's position and so the rest of the radio buttons.</p>
  
  <p>Please have a look at image below:</p>
  
  <p><a href="https://i.stack.imgur.com/3a4fi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3a4fi.png" alt="enter image description here"></a></p>
  
  <p>And here is the code that I am using:</p>
  
  <pre><code>private void checkBox1_CheckedChanged(object sender, EventArgs e)
          {
              if (checkBox1.Checked)
              {
                  radioButton1.Visible = false;
  
                  radioButton2.Location = new Point(57, 40);
  
                  radioButton3.Location = new Point(242, 40);
  
                  radioButton4.Location = new Point(435, 40);
              }
  
              else
              {
                  radioButton1.Visible = true;
  
                  radioButton1.Location = new Point(57, 40);
  
                  radioButton2.Location = new Point(242, 40);
  
                  radioButton3.Location = new Point(435, 40);
  
                  radioButton4.Location = new Point(619, 40);
              }
          }
  </code></pre>
  
  <p>As you can see, I modify the position of radioButtons in hard-coded way.</p>
  
  <p>My question is: How do I can make it the positions of the radio buttons dynamic? So when the radioButton1 is disappear, then the radioButton2 will take place of radioButton1's position and so the rest by itself, not by the hard-coded way.</p>
  
  <p>Your answer much appreciated!</p>
  
  <p>Thank you</p>