Skip to content

Instantly share code, notes, and snippets.

@opavlyshak
Created May 18, 2012 18:30
Show Gist options
  • Save opavlyshak/2726908 to your computer and use it in GitHub Desktop.
Save opavlyshak/2726908 to your computer and use it in GitHub Desktop.
Create and show console window in .NET
using System.Runtime.InteropServices;
namespace Application
{
public class ConsoleUtils
{
[DllImport("kernel32.dll", EntryPoint = "AllocConsole", CharSet = CharSet.Unicode)]
public static extern bool AllocConsole();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment