title: Winform command line argument returning executable filename
body: <p>I am trying to pass a command line argument to a winform I have but no matter what I specify as the parameter it keeps returning the winform filename and path.</p>
  
  <pre><code>private void Form1_Load(object sender, EventArgs e)
  {
      MessageBox.Show(Environment.GetCommandLineArgs()[0]);
  }
  </code></pre>
  
  <p>The messagebox will show <code>C:\App\MyApp.exe</code> even if at a cmd I type <code>C:\App\MyApp.exe param1</code> which should output <code>param1</code>.</p>