Loading

C#只允许启动一个WinFrom进程

C#只允许启动一个WinFrom进程[STAThread]public static void Main(){ bool ret; System.Threading.Mutex mutex = new System.Threading.Mutex(true, Application.ProductName, out ret); if (ret) { System.Windows.Forms.Application.EnableVisualStyles(); //这两行实现 XP 可视风格 System.Windows.For...
posted @ 2012-06-26 23:09  jevan  阅读(2427)  评论(0编辑  收藏  举报