To get stuck in straight away, a very basic example:
using System; using System.Windows.Forms; class test { static void Main() { Console.W
this one should work.
using System.Runtime.InteropServices; private void Form1_Load(object sender, EventArgs e) { AllocConsole(); } [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] static extern bool AllocConsole();