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

Get Microsoft® .NET Compact Framework Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.