Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试覆盖 .NET 中 NotifyIcons 上的点击事件。问题是类是密封的,不能被继承。我想要获得的功能不是使用上下文菜单来控制应用程序,而是双击图标来切换应用程序模式。这可能吗?
只需使用notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
为什么需要覆盖它?