You can dynamically create and destroy a console window using PInvoke to call the Windows API:
Just declare those, and then call AllocConsole() to create a console and FreeConsole() to get rid of it. While you have a console, Console.WriteLine() etc will work. |