title: c# Show Windows Form
body: <p>So, I'm struggling a little bit here. I am writing a windows console application in C# and have just made a login form for the application called frmLogin.
  I tried using the MS documented method of;</p>
  
  <pre><code>Form f = new Form();
  f.ShowDialog();
  </code></pre>
  
  <p>but this obviously loads/displays a blank form and not the form I defined in the form designer.</p>
  
  <p>In my main application, I want to be able to show the login form programmatically, but when I try to use;</p>
  
  <pre><code>frmLogin.ShowDialog();
  </code></pre>
  
  <p>it tells me that "An object reference is required for the non-static field, method or property 'System.Windows.Forms.Form.ShowDialog()'</p>
  
  <p>In the old days, I could show a form by simply using the above snippet of code. So, obviously something has changed since the last time I wrote a windows console app.</p>
  
  <p>Can someone show me the error of my ways?</p>