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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top