System.Windows.Forms 2.0.0.0 System.Windows.Forms.ToolStripDropDownMenu System.ComponentModel.DefaultEvent("Opening") System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch) System.Runtime.InteropServices.ComVisible(true) replaces . You can associate a with any control, and a right mouse click automatically displays the shortcut menu. You can show a programmatically by using the method. supports cancelable and events to handle dynamic population and multiple-click scenarios. supports images, menu-item check state, text, access keys, shortcuts, and cascading menus. The following items are specifically designed to work seamlessly with both and in all orientations. They are available by default at design time for the control: Shortcut menus are typically used to combine different menu items from a of a form that are useful for the user given the context of the application. For example, you can use a shortcut menu assigned to a control to provide menu items for changing the font of the text, finding text within the control, or Clipboard features for copying and pasting text. You can also expose new objects in a shortcut menu that are not located within a to provide situation-specific commands that are inappropriate for the to display. Typically, a shortcut menu is displayed when a user clicks the right mouse button over a control or the form itself. Many visible controls, as well as the itself, have a property that binds the class to the control that displays the shortcut menu. More than one control can use a . Set the property to true to add space to the left of a for a check mark that shows that the menu item is enabled or selected. The property is set to true by default. Use this space to the left of the to display an image for that menu item. Although replaces and adds functionality to the control of previous versions, is retained for both backward compatibility and future use if so desired. Represents a shortcut menu. Constructor To be added. Initializes a new instance of the class. 2.0.0.0 Constructor Use this constructor to ensure that the is disposed of properly, since it is not a child of the form. Initializes a new instance of the class and associates it with the specified container. A component that implements that is the container of the . 2.0.0.0 Method System.Void This method is called by the public Dispose method and the method. Dispose invokes the protected Dispose(Boolean) method with the parameter set to true. invokes Dispose with set to false. When the parameter is true, this method releases all resources held by any managed objects that this references. This method invokes the Dispose method of each referenced object. Releases the unmanaged resources used by the and optionally releases the managed resources. true to release both managed and unmanaged resources; false to release only unmanaged resources. 2.0.0.0 Method System.Void To be added. To be added. true to make the control visible; otherwise, false. 2.0.0.0 Property System.Windows.Forms.Control To be added. Common uses of the property include the following: Adding, removing, enabling, or disabling a menu item during the event. Deciding on modifications of a chosen command based on the control that last displayed the . Gets the last control that caused this to be displayed. 2.0.0.0 System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden) System.ComponentModel.Browsable(false)