MenuItem.Clear

  • Thread starter Thread starter Jeff Louie
  • Start date Start date
J

Jeff Louie

Does anyone know if MenuItems.Clear is smart enough to unregisters all
events associated with each contained MenuItem?

Regards,
Jeff
 
Hi Jeff,

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

HTH
Marcin
 
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.
 
Back
Top