2015年12月24日

摘要: 1.添加托盘后发现托盘事件不能响应因此需要在主程序中添加一下代码 while (true) { Application.DoEvents(); }DoEvents会处理事件池中的事件,当然也可以另外开一个线程处理。2.查看任务... 阅读全文
posted @ 2015-12-24 11:12 飞在云端的石头 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1 internal class NotifyIconHelper 2 { 3 public NotifyIconHelper() 4 { 5 NOTIFY_ICON.Icon = new Icon(Environment.Curr... 阅读全文
posted @ 2015-12-24 10:31 飞在云端的石头 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1.导入dll [DllImport("user32.dll", EntryPoint = "ShowWindow", SetLastError = true)] private static extern bool ShowWindow(IntPtr hWnd, uin... 阅读全文
posted @ 2015-12-24 09:36 飞在云端的石头 阅读(927) 评论(0) 推荐(0) 编辑
摘要: [csharp] 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Net;... 阅读全文
posted @ 2015-12-24 08:32 飞在云端的石头 阅读(1042) 评论(0) 推荐(0) 编辑

导航