title: Buttons do not show up when specifying location property in Windows Forms
body: <p>I'm trying dynamically add panels within a panel dependent on the count of people in a list using the following code when the form loads:</p>
  
  <pre><code>private void Form1_Load(object sender, EventArgs e)
  {
      const int xConst = 2;
      var people = new List&lt;string&gt;
      {
          "Person1",
          "Person2",
          "Person3",
          "Person4",
      };
      var y = 2;
      for (var x = 0; x &lt; people.Count; x++)
      {
          var newpan = new MyPanel
          {
              BorderStyle = BorderStyle.None,
              Height = 25,
              Width = panel1.Width - 5,
              Location = new Point(xConst, y)
          };
          var newlbl = new Label
          {
              BorderStyle = BorderStyle.None,
              AutoSize = false,
              Text = people[x],
              Font = new Font("Segoe UI", 9.5F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(0))),
              Size = new Size(75,20),
              Location = new Point(newpan.Location.X + 2, newpan.Location.Y + 2),
          };
          var newbtn = new Button
          {
              FlatStyle = FlatStyle.Flat,
              FlatAppearance = { BorderSize = 0 },
              UseVisualStyleBackColor = true,
              Text = @"+",
              Size = new Size(15,21),
              Location = new Point(newpan.Width - 20,newpan.Location.Y - 1),
              Font = new Font("Segoe UI", 9.0F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)))
          };
          newpan.Controls.Add(newlbl);
          newpan.Controls.Add(newbtn);
          panel1.Controls.Add(newpan);
          y += 27;
      }
  }
  </code></pre>
  
  <p>The problem is that if I specify the Location property in both the button and the label, only the first iteration of the labels and buttons show up for the <code>Person1</code> iteration.  But, if I leave the Location property out, they all show up.  The problem with that is that I have a custom panel that overrides some stuff allowing me to put a customer border and color around the panels, and if I don't specify a location, the labels and buttons aren't positioned correctly on the panel, so it covers my border and looks sloppy.  </p>
  
  <p>Can someone help me figure out why this is happening?  I've stepped through the program completely and watched all the values I can think of increment accordingly in the watch window.  All the panels show up correctly, so I don't understand why their respective labels and buttons don't show up when I specify the location.</p>