ToolStripMenuItem disappear

Topics: CAB & Smart Client Software Factory
Sep 29, 2005 at 12:33 AM
originally posted by: sbag


I have an application MDI multi language. In the Main form I have a MenuStrip with MenuItems.
By code, I have associated URI and CommandService to MenuItems :

ToolStripMenuItem item1 = mainForm.testToolStripMenuItem;
Host.DefaultWorkItem.GetService<IUIElementService>().AddElement(new Uri ("uie://mainmenu/Test"), item1);
Host.DefaultWorkItem.GetService<ICommandService>().RegisterUIElement("ShowTest", new Uri("uie://mainmenu/Test"), "Click");

When I open a window all MenuItems with URI disappear ! MenuItems since URI are visible.

Any Idea ?

Thanks in advance,