2003的NotifyIcon没有气泡提示功能,所以扩展了一个新的,能达到2005的NotifyIcon的同样功能,并且提供了两个新的功能。
    静态方法 FindNotifyIcon 在系统托盘里查找提示文本相同的托盘句柄,以便以向它发送消息。
    事件 DoWndProc 托盘WndProc时触发。
    下面是程序清单:
一个新的NotifyIconusing System;
一个新的NotifyIcon
using System.ComponentModel;
一个新的NotifyIcon
using System.Drawing;
一个新的NotifyIcon
using System.Reflection;
一个新的NotifyIcon
using System.Runtime.InteropServices;
一个新的NotifyIcon
using System.Windows.Forms;
一个新的NotifyIcon
一个新的NotifyIcon
namespace FaibClass.Windows.Forms
}

比如使用它可以使程序只运行一个实例:
一个新的NotifyIcon[STAThread]  
一个新的NotifyIcon
static void Main(params string[] pars)   
}
 frmMain里触发事件:
一个新的NotifyIconprivate bool ntiMain_DoWndProc(object sender, ref System.Windows.Forms.Message m)  
}

相关文章:

  • 2022-12-23
  • 2022-01-22
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-24
  • 2021-09-25
  • 2021-09-09
  • 2022-12-23
  • 2021-09-24
  • 2021-08-09
相关资源
相似解决方案