摘要:
1.添加托盘后发现托盘事件不能响应因此需要在主程序中添加一下代码 while (true) { Application.DoEvents(); }DoEvents会处理事件池中的事件,当然也可以另外开一个线程处理。2.查看任务... 阅读全文
摘要:
1 internal class NotifyIconHelper 2 { 3 public NotifyIconHelper() 4 { 5 NOTIFY_ICON.Icon = new Icon(Environment.Curr... 阅读全文
摘要:
1.导入dll [DllImport("user32.dll", EntryPoint = "ShowWindow", SetLastError = true)] private static extern bool ShowWindow(IntPtr hWnd, uin... 阅读全文