title: The type 'Component' is defined in an assembly that is not referenced
body: <p>I'm pretty new to c# and I just started learning GUI, but this gives out an error and I don't know why (I've added a reference to System.Windows.Forms)</p>
  <pre><code>using System;
  using System.Windows.Forms;
  
  
  namespace Project2
  {
      class Class1
      {
          [STAThread]
          static void Main()
          {
              Form mf = new Form();
              mf.Text = &quot;Title&quot;;
              mf.Height = 200;
              mf.Width = 300;
              Application.Run(mf);
  
          }
      }
  }
  </code></pre>
  <p>The line causing the error (The type 'Component' is defined in an assembly that is not referenced) is: <code>Application.Run(mf);</code></p>