title: How do I show a console output/window in a forms application?
body: <p>To get stuck in straight away, a very basic example:</p>
  
  <pre><code>using System;
  using System.Windows.Forms;
  
  class test
  { 
      static void Main()
      { 
          Console.WriteLine("test");
          MessageBox.Show("test");
      }
  }
  </code></pre>
  
  <p>If I compile this with default options (using csc at command line), as expected, it will compile to a console application. Also, because I imported <code>System.Windows.Forms</code>, it will also show a message box.</p>
  
  <p>Now, if I use the option <code>/target:winexe</code>, which I think is the same as choosing <code>Windows Application</code> from within project options, as expected I will only see the Message Box and no console output.</p>
  
  <p>(In fact, the moment it is launched from command line, I can issue the next command before the application has even completed).</p>
  
  <p>So, my question is - I know that you can have "windows"/forms output from a console application, but is there anyway to show the console from a Windows application?</p>