You can't do that on CF 2.0/3.5 as this is a bug I believe effects both
desktop and device frameworks which was introduced on 2.0 and wasn't
fixed
in
3.5. You will have to clear the submenu collection using the Clear
method.
See if this bug report on Microsoft Connect clears things up for you:
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=201317
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com
:
hi,
I put code below to remove a specific item but not work.
any sugestion?
bool status = true;
if (status){
mainMenu.MenuItems.Remove(mainMenu.MenuItems[1].MenuItems[0]);
}
--
Armando Rocha
Mobile Developer
http://www.ifthensoftware.com
"Armando Rocha" <
[email protected]> escreveu na mensagem
Ok, Thanks for the help.
--
Armando Rocha
Mobile Developer
http://www.ifthensoftware.com
"Simon Hart [MVP]" <
[email protected]> escreveu na mensagem
You can't. You have to clear the menu collection then re-add them
when
required.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com
:
Hi,
How can i Hide a MenuItem from MainMenu?
like that:
menu1.visible = false;
but the menu item dont have a propertie called visible.
--
Armando Rocha
Mobile Developer
http://www.ifthensoftware.com