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