internally uses a RadMessageFilter
for handling the shortcuts that may be added to the menu. It uses Hooks rather than the IMessageFilter
interface. This is needed because sometimes we are in an unmanaged environment (like in MFC or in Outlook). We have further reviewed the code in the RadMenu
and it seems that we properly manage the Hooks. However, I suppose that Excel somehow also uses it when the form is closed when closing the Excel instance. This causes the exception and application hanging.
I am not sure exactly how this can be managed without affecting the shortcuts. But the possible solution that I can suggest is to create a custom RadMenu
and override its OnLoad
method as it is demonstrated below. It is required not to use shortcuts for the menu in this case:
CustomMenu : RadMenu
I hope this information helps.
Dess | Tech Support Engineer, Sr.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.