all groups > c# > march 2005 >
You're in the

c#

group:

MenuItem.Clear


MenuItem.Clear Jeff Louie
3/14/2005 10:54:59 PM
c#: Does anyone know if MenuItems.Clear is smart enough to unregisters all
events associated with each contained MenuItem?

Regards,
Jeff

*** Sent via Developersdex http://www.developersdex.com ***
Re: MenuItems.Clear Marcin GrzÄâ„¢bski
3/15/2005 2:23:42 PM
Hi Jeff,

I'm affraid its not.
It only removes all menu items in collection, as .NET docs says.

HTH
Marcin

[quoted text, click to view]
Re: MenuItems.Clear Jeff Louie
3/15/2005 6:19:57 PM
Marcin.... Ok. Thanks. I do find it weird that I have to call new
eventhandler
when I unregister it!

menuItem -= new EventHandler(handler);

Regards,
Jeff
I'm affraid its not.
It only removes all menu items in collection, as .NET docs says.

*** Sent via Developersdex http://www.developersdex.com ***
AddThis Social Bookmark Button