Context Menus and the Context MenuStrip Control

Context menus are familiar to all users of Windows Forms applications. These shortcut menus are displayed when the user right-clicks an object. The ContextMenuStrip control allows you to create context menus and associate them with a selected object.

The ContextMenuStrip control is similar to the MenuStrip control. Both controls have an intuitive design interface that allows you to create tool strip menu items quickly, and both expose a collection of tool strip menu items in the Items property. The main difference between the ContextMenuStrip and the MenuStrip controls is that the Context-MenuStrip control does not have a top-level menu and is not visible at run time unless invoked by right-clicking the control that it is associated with.

Was this article helpful?

0 0

Post a comment