title: Creating dynamic comboboxes on a dynamic panel
body: <p>I am trying to create 4 <code>comboboxes</code> on a dynamically created <code>panel</code> but nothing is showing. What am I missing here, this is my code:</p>
  
  <pre><code>public partial class Form1 : Form
      {
          ComboBox[] cmb;
          public Form1()
          {
              InitializeComponent();
  
          }
  
          Panel pnl;
  
  
          private void Form1_Load(object sender, EventArgs e)
          {
              panel();
              createCombo();
          }
  
          private void panel()
          {
              pnl= new Panel();
              pnl.Location = new Point(10, 10);
              pnl.BorderStyle = BorderStyle.FixedSingle;
              pnl.Size = new Size(200, 150);
  
              this.Controls.Add(pnl);
              createCombo();
          }
  
          private void createCombo()
          {
  
              for (int i = 0; i &lt;= 3; ++i)
              {
                  cmb[i] = new ComboBox();
                  cmb[i].Text = "CodeCall!";
                  cmb[i].Size = new Size(90, 00);
                  cmb[i].Location = new Point(i+5, 0);
                  pnl.Controls.Add(cmb[i]);
              }
  
          }
      }
  </code></pre>
  
  <p>Interface shows only the panel:</p>
  
  <p><img src="https://i.stack.imgur.com/Zx1vR.png" alt="enter image description here"></p>