2003的NotifyIcon没有气泡提示功能,所以扩展了一个新的,能达到2005的NotifyIcon的同样功能,并且提供了两个新的功能。 静态方法 FindNotifyIcon 在系统托盘里查找提示文本相同的托盘句柄,以便以向它发送消息。 事件 DoWndProc 托盘WndProc时触发。 下面是程序清单: using System;using System.ComponentModel;using System.Drawing;using System.Reflection;using System.Runtime.InteropServices;using System.Windows.Forms;namespace FaibClass.Windows.Forms} 比如使用它可以使程序只运行一个实例: [STAThread] static void Main(params string[] pars) } frmMain里触发事件: private 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