随笔 - 139  文章 - 0  评论 - 421  阅读 - 17万
09 2010 档案
如何显示一个非激活窗体
摘要:在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) 评论(9) 推荐(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) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示