class Program
    {
        [DllImport("user32.dll", EntryPoint = "ShowWindow", SetLastError = true)]
        static extern bool ShowWindow(IntPtr hWnd, uint nCmdShow);
        [DllImport("user32.dll", EntryPoint = "FindWindow", SetLastError = true)]
        public static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
        static void Main(string[] args)
        {
            Console.Title = "WAHAHA";
            IntPtr intptr = FindWindow("ConsoleWindowClass""WAHAHA");
            if (intptr != IntPtr.Zero)
            {
                ShowWindow(intptr, 0);//隐藏这个窗口
            }
            string x;
            x = Console.ReadLine();
        }
    }
通过以上代码只能是让其闪的时间变得纪委短暂。有时候还是看到有框出现。
代码摘自网络

最新文章

  1. 委托 lambda表达式浅显理解
  2. WPF感悟
  3. sudo: /etc/sudoers is world writable
  4. int main(int argc,char* argv[])详解
  5. uva748 - Exponentiation
  6. XCode使用自带SVN,SVN命令
  7. Oracle中关于bitmap index的使用问题
  8. kill 命令详解 系统信号
  9. LVS单机测试不负载
  10. win2008 ent r2 开启端口
  11. [周译见] C# 7 中的模范和实践
  12. Learning to Rank算法介绍:GBRank
  13. python中关于turtle库的学习笔记
  14. com.mysql.jdbc.connection和java.sql.connection的区别
  15. 关于a标签的用法总结
  16. cocos2dx添加新的类后出现错误undefined reference to的解决办法
  17. WebAssembly 浏览器中运行c/c++模块
  18. 彻底理解lib和dll
  19. 投稿核心期刊、中文重要期刊、SCI二区及以上期刊目录
  20. Linux内核分析 计算机是如何工作的——by王玥

热门文章

  1. windows server 2008 远程桌面连接数修改--无限连接
  2. ios runtime简单实用(添加动态属性)
  3. iOS9 UIWindow rootViewController
  4. C++重载、重写(覆盖)、隐藏
  5. 把System.Drawing.Image对象img,在页面的Image控件上显示出来
  6. ssh的无密码登录
  7. 不要用for in语句对数组进行遍历
  8. 02 请求库之 selenium模块
  9. DB2错误码
  10. C# 如何操作串口