views:

27

answers:

1

I'm trying to override click events on NotifyIcons in .NET. The problem is the class is sealed and cannot be inherited. The functionality I'd like to attain is rather than using a context menu to control the application, I'd like to doubleclick the icon to toggle the applications mode. Is this possible?

+2  A: 

Just use notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);

Why you need to override it?

Orsol
Man, I am dumb. Cheers.
lfc