title: How to add buttons dynamically to my form?
body: <p>I want to create 10 buttons on my form when I click on button1. No error with this code below but it doesnt work either.</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      List&lt;Button&gt; buttons = new List&lt;Button&gt;();
      for (int i = 0; i &lt; buttons.Capacity; i++)
      {
          this.Controls.Add(buttons[i]);   
      }
  }
  </code></pre>