c#控制台相关的设置

[DllImport("Kernel32.dll")]
        static extern bool AllocConsole();
        [DllImport("Kernel32.dll")]
        static extern bool FreeConsole();  


using System.Runtime.InteropServices;

 

可以实现控制台的隐藏或者显示

posted on 2012-03-27 17:37  雨渐渐  阅读(202)  评论(0编辑  收藏  举报

导航