title: How do I best reference this control?
body: <p>I have got a TableLayoutPanel to which I am adding controls using the below syntax.</p>
  
  <pre><code>tableLayoutPanelTableHeaders.Controls.Add(new Label {Name = "myLabel, "Text = "+", Font = new Font("Microsoft Sans Serif", 14, FontStyle.Bold), ForeColor = System.Drawing.Color.ForestGreen, AutoSize = true, Enabled = false}, 3, 1);
  </code></pre>
  
  <p>Is there any way for me to reference the label I am creating without having to search for it first? At the moment I have got to search child controls of my TableLayoutPanel for one with a name of "myLabel".</p>
  
  <pre><code>Label myLabel = (Label)tableLayoutPanelTableHeaders.Controls.Find("myLabel", true)[0];
  </code></pre>
  
  <p>I know I could create the label first and assign it to a variable like below and then add this to the combobox, but I like how the above code keeps everything on one line.</p>
  
  <pre><code>Label myLabel = new Label {Name = "myLabel, "Text = "+", Font = new Font("Microsoft Sans Serif", 14, FontStyle.Bold), ForeColor = System.Drawing.Color.ForestGreen, AutoSize = true, Enabled = false};
  </code></pre>
  
  <p>Also, does anybody know if creating a control as I am in my first example is referred to by a special term? </p>