Hi JABE,
First of all, thank you very much for the reply.
I'm a little bit confused! could you explain to me what have you done?
I am adding a menu item programmatically and this is my codes in doing it:
MainMenu mainMenu = new MainMenu();
mainMenu.MenuItems.Add("Entry");
MenuItemEx menuItem = new MenuItemEx();
menuItem.AssemblyName = "Customer.dll";
menuItem.MenuItems.Add(new MenuItem("Customer",new EventHandler
(this.Menu_Clicked)));
The "sender" parameter has now the AssemblyName, but it is declared as object so I have to cast it to MenuItemEx, but the thing is... I could not retrieve it whenever I click the menuitem? From what part of this codes do I missed something? could you help me explain further what you have done?
Thank you.
chris