O'Reilly logo

Microsoft® .NET Compact Framework Kick Start by Ronnie Yates, Erik Rubin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding Menus with the MainMenu Control

Menus are an easy and efficient way to present options to your users. Menus are handled differently, depending on whether the application is running on the Pocket PC OS or the Windows CE OS. By default a Pocket PC application will contain a MainMenu control. A Pocket PC application displays menus at the bottom of the application. Windows CE applications have no default menu, and menus are displayed at the top of the application, like standard desktop applications.

The MainMenu control is a container control that holds all of the MenuItem controls in the application. Menus with sub-items can be created by adding multiple submenu items to a top-level MenuItem.

You can add menus to your application at design ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required