- 博客(5)
- 收藏
- 关注
原创 C# 检测程序是否重复运行
static void Main() { bool weiyi; System.Threading.Mutex mutex = new System.Threading.Mutex(true, Application.ProductName, out weiyi); if (weiyi)
2014-07-29 20:55:55
1252
原创 C# 截取屏幕图像并保存
string lujing = @"C:\Windows\System32\drivers\etc\"; if (!Directory.Exists(lujing)) { Directory.CreateDirectory(lujing); } Screen pingmu
2014-04-07 21:55:07
795
原创 C# 隐藏最小化最大化按钮并禁止更改窗体大小
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; //禁止更改窗体大小. this.MaximizeBox = false; //隐藏最大化按钮. this.MinimizeBox = false; //隐藏最小化按钮.
2014-02-02 22:30:19
1123
原创 C# 定时器
using System.Timers; public void dingshi() { System.Timers.Timer shijian = new System.Timers.Timer(300000); //设置定时的时间. shijian.Elapsed += new ElapsedEvent
2014-01-28 22:25:51
663
原创 C# 进程管理
int xuhao = 0; Process[] p = Process.GetProcesses(); //获取所有的进程列表. for (int i = 0; i < p.Length; i++) { if (p[i].ProcessName ==
2014-01-19 14:58:54
803
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅