title: Create button during runtime in C#.net?
body: <p>I know how to create button during runtime.</p>
  
  <pre><code>Button button1 = new Button();
  
  button1.Location = new Point(20,10);
  button1.Text = "Click Me";
  // adding to groupBox1
  groupBox1.Controls.Add(button1);
  </code></pre>
  
  <p>But the problem is i want to add multiple buttons like this..</p>
  
  <pre><code>for(int i = 1; i &lt; 30; i++) {
  Button button[i] = new Button();
  // Button customization here...
  ...
  groupBox1.Controls.Add(button[i]);
  
  }
  </code></pre>
  
  <p>The code above is false code. How can I make this happen true in C#.net? i want to create multiple buttons with button name, button1, button2, button3, button4, .... button30;</p>