title: How to add a ListBox programmatically in a Form
body: <p>I started out <code>C#</code> very recently and sorry if this question sounds dumb.</p>
  
  <p>How do I add a Listbox in a Form that pops out from a Button click?</p>
  
  <p>Note: The Form isn't the one that's added from the Solution Explorer whereby I can just drag a Listbox from the Toolbox to my Form.</p>
  
  <p>So what I want is to create a ListBox in my file <code>drawer1Form</code> where I can add additional items. Thanks for the help in advance!:)</p>
  
  <pre><code>private void drawer1button_Click(object sender, EventArgs e)        // Drawer 1 Button
      {
          drawer1Form df1 = new drawer1Form();
          df1.StartPosition = FormStartPosition.CenterScreen;
          df1.Show();
      }
      public partial class drawer1Form : Form                         // Creates drawer1Form
      {
          public drawer1Form()
          {
             Text = "Drawer 1 ";
          }
  
      }
  </code></pre>