title: Show Console in Windows Application?
body: <p>Is there a way to show the console in a Windows application?</p>
  
  <p>I want to do something like this:</p>
  
  <pre><code>static class Program
  {
      [STAThread]
      static void Main(string[] args) {
          bool consoleMode = Boolean.Parse(args[0]);
  
          if (consoleMode) {
              Console.WriteLine("consolemode started");
              // ...
          } else {
              Application.EnableVisualStyles();
              Application.SetCompatibleTextRenderingDefault(false);
              Application.Run(new Form1());
          }
      }
  }
  </code></pre>