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

Using a ContextMenu Control in an Application

The ContextMenu control is almost exactly like the MainMenu control except that the context menus are associated with other controls, whereas the MainMenu is associated with the application's form. ContextMenus are also known as pop-up menus that appear when you tap-and-hold a control on Pocket PC or right-click a control on Windows CE. Tap-and-hold can be simulated on the Pocket PC emulator by pressing and holding the left mouse button.

To add a ContextMenu to an application, drag the control from the ToolBox onto the application. The new ContextMenu control will appear in the panel at the bottom of the Form Designer. When the ContextMenu is selected, the Form Designer paints the control in the same ...

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