title: Setting anchor for dynamic created controls
body: <p>I have winform on which are dynamically created 52 radio buttons.
  This is method for creating them:</p>
  
  <pre><code>    private void CreateRadioButton()
      {            
          int rbCount = 52;
          int numberOfColumns = 23;
  
          radioButtons = new RadioButton[rbCount];
          int y = 520;
  
          for (int i = 0; i &lt; rbCount; i++)
          {
              radioButtons[i] = new RadioButton();
              radioButtons[i].Text = Convert.ToString(i + 1);
  
              if (i % numberOfColumns == 0) 
                  y += 20;
  
              var x = 11 + i % numberOfColumns * 50;
  
              radioButtons[i].Location = new Point(x, y);
              radioButtons[i].Size = new Size(40, 15);
              //radioButtons[i].Anchor = AnchorStyles.Left;
              //radioButtons[i].Anchor = AnchorStyles.Bottom;
              radioButtons[i].Font = new Font(radioButtons[i].Font.FontFamily, 8, FontStyle.Bold);
              radioButtons[i].UseVisualStyleBackColor = true;
              radioButtons[i].Click += new EventHandler(rbtns_click);
  
              xtraTab.Controls.Add(radioButtons[i]);            
          }          
  
      }
  </code></pre>
  
  <p>There is problem when form is maximized. Radio buttons disappear.
  If I set</p>
  
  <pre><code> radioButtons[i].Anchor = AnchorStyles.Left;
   radioButtons[i].Anchor = AnchorStyles.Bottom;
  </code></pre>
  
  <p>The radio buttons are overlayed.</p>
  
  <p>What can I do to keep their position on the same place if form is resized?</p>