D
Davie
I'm developing an application on the smartphone. To reduce the size of the application i'm using panels where appropriate instead of forms. As a result of the design, I need to have different context menus on one form. I had tried to declare two MainMenu items and then simply switch the display accordingly. eg.
public void displayPanel1(){
this.Menu = this.mainMenu1; //
this.Refresh();
}
public void displayPanel2(){
this.Menu = this.mainMenu2;
this.Refresh();
}
but this throws a not supported exception. I am aware that smartphone allows only one menuitem on the left softkey and multiple on the right softkey. I have adhered to this policy. I then tried to have one MainMenu and just clear all menuitems then populate the menu depending on which panel i display.
this.rightmenuItem.MenuItems.Clear();
this.rightmenu.MenuItems.Add(this.next_menuItem);
this.rightmenu.MenuItems.Add(this.exit_menuItem);
Again this throws a Not Supported Exception when i try to Clear the list of MenuItems. I have tried the code on Pocket Pc and this works, how can i display menus on the smartphone? I have found things on google, but that is where people have placed menuItems on the left hand side.
Any help would be appreciated.
Davie.
public void displayPanel1(){
this.Menu = this.mainMenu1; //
this.Refresh();
}
public void displayPanel2(){
this.Menu = this.mainMenu2;
this.Refresh();
}
but this throws a not supported exception. I am aware that smartphone allows only one menuitem on the left softkey and multiple on the right softkey. I have adhered to this policy. I then tried to have one MainMenu and just clear all menuitems then populate the menu depending on which panel i display.
this.rightmenuItem.MenuItems.Clear();
this.rightmenu.MenuItems.Add(this.next_menuItem);
this.rightmenu.MenuItems.Add(this.exit_menuItem);
Again this throws a Not Supported Exception when i try to Clear the list of MenuItems. I have tried the code on Pocket Pc and this works, how can i display menus on the smartphone? I have found things on google, but that is where people have placed menuItems on the left hand side.
Any help would be appreciated.
Davie.