System.Windows.Forms.ToolBarButton.DropDownMenu Property

Gets or sets the menu to be displayed in the drop-down toolbar button.

Syntax

[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ReferenceConverter))]
[System.ComponentModel.DefaultValue(null)]
public Menu DropDownMenu { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can specify a System.Windows.Forms.ContextMenu to be displayed when the drop-down button is clicked. This property is not used unless the ToolBarButton.Style property value is set to ToolBarButtonStyle.DropDownButton.

Note:

Although the ToolBarButton.DropDownMenu property is defined as a System.Windows.Forms.Menu type, you must assign it a System.Windows.Forms.ContextMenu for it to display properly. If you are creating your own System.Windows.Forms.MenuItem derived class you must assign that object to a System.Windows.Forms.ContextMenu and assign the System.Windows.Forms.ContextMenu to the ToolBarButton.DropDownMenu property.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0