ToolStripMenuItem disappear

Topics: CAB & Smart Client Software Factory
Sep 28, 2005 at 11:33 PM
originally posted by: sbag

Hello,

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,
Salvatore.