现在的位置: 首页 > 综合 > 正文

c#控制台相关的设置

2012年05月25日 ⁄ 综合 ⁄ 共 189字 ⁄ 字号 评论关闭

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

using System.Runtime.InteropServices;

 

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

抱歉!评论已关闭.