如何显示一个非激活窗体
摘要:在WinForm程序中如何显示一个非激活的窗体呢?在.NET中似乎很难做到这一点,我们需要借助ShowWindow这个API来实现:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;usi...
阅读全文
posted @
2010-09-25 20:53
周雪峰
阅读(561)
推荐(2) 编辑
实现单实例应用程序的三种方案
摘要:实现单实例应用程序的方法比较多,我列举一些常用的方法: 1,使用互斥体: static void Main() { bool isOnlyOne; System.Threading.Mutex mtx = new System.Threading.Mutex (false, "OnlyOne", out isOnlyOne); if (isOnlyOne) { Application...
阅读全文
posted @
2010-09-21 22:40
周雪峰
阅读(355)
推荐(0) 编辑