internal static class Program
{
[DllImport("kernel32.dll")]
static extern bool FreeConsole();
[DllImport("kernel32.dll")]
static extern bool AllocConsole();
///
/// The main entry point for the application.
///
[STAThread]
static void Main()
{
FreeConsole();
AllocConsole();
ApplicationConfiguration.Initialize();
Application.Run(new Form1());
}
}



