Last AddApplicationMenuItem Problem I PROMISE!!!
Posted: Fri Oct 23, 2009 12:42 pm
When I add more than one Application Menu Item and set a different event handler for each of them. It would seem that only the last one gets applied to all of them.
For example:
In this example both Menu items I have added here show up on the menu but both menu items trigger the ExportReportLayout event handler.
For example:
Code: Select all
Ribbon.AddApplicationMenuItem("&Import Layout", new EventHandler(ImportReportLayout), ImportImage, 3);
Ribbon.AddApplicationMenuItem("&Export Layout", new EventHandler(ExportReportLayout), ExportImage, 6);