The smartphone is particularly picky about how menus are arrange in order to
comply with the design guidelines. The first menu item (left-hand softkey)
can not have a sub-menu, however the right-hand can. So in your case you
should add a main menu item first with no child items, then add your menu
with sub items so they are placed on the right soft-key.
Peter
--
Peter Foot
Windows Embedded MVP
In The Hand
http://www.inthehand.com
"Gavin" <(E-Mail Removed)> wrote in message
news:054f01c37121$148cb110$(E-Mail Removed)...
> I'm trying develop a SmartPhone application in C#.
> But it's bad!
> It just can't create menuitem as following code.
> ---------------------------------------------------
> this.mainMenu = new System.Windows.Forms.MainMenu();
> this.menuItem1 = new System.Windows.Forms.MenuItem();
> this.menuItem11 = new System.Windows.Forms.MenuItem();
>
> this.mainMenu.MenuItems.Add(this.menuItem1);
> this.menuItem1.MenuItems.Add(this.menuItem11); <- Fail
> ---------------------------------------------------
> Does anyone know how to do such things in C#?
> This is my first little try on CF, I don't think so it's
> good as EVC of SmartPhone device!!
>