title: Why can't I see my button on my form?
body: <p>I'm learning C#, and am currently studying windows forms (because I would like to plot things).</p>
  
  <p>I'm following an online tutorial, and have written the following code:</p>
  
  <pre><code>using System;
  using System.Windows.Forms;
  
  public class Exercise : Form
  {
      private Button btnSubmit;
  
      public Exercise()
      {
          btnSubmit = new Button();
          Controls.Add(btnSubmit);
      }
  }
  
  public class program
  {
      public static int Main()
      {
          Application.Run();
          return 0;
      }
  }
  </code></pre>
  
  <p>This should define a button on my form, according to the Introduction of <a href="http://www.yevol.com/en/vcsharp/applicationdesign/Lesson03.htm" rel="nofollow">this tutorial</a>, but when I right click and choose "View Designer", there's no button on the form, and when I try to run it, nothing pops up.</p>
  
  <p>As far as I can tell, it is the Controls.Add method that should <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.control%28v=vs.110%29.aspx" rel="nofollow">make a visual representation</a> of the button, but I don't see it. Where did it go?</p>
  
  <p>If it matters, I started the project by selecting an empty project, making it a windows form project and by adding a class to it.</p>