Back to Devexpress

Create Popup Menus

windowsforms-116791-controls-and-libraries-ribbon-bars-and-menu-bars-tutorials-create-popup-menus.md

latest1.8 KB
Original Source

Create Popup Menus

  • Mar 29, 2023
  • 2 minutes to read

Below is a brief tutorial about creating popup menus. Refer to this article for detailed information.

  1. Locate the PopupMenu in VS Toolbox and drop in onto the form (user control).

  2. Invoke the menu smart tag and click the “Customize” link. This will invoke the Customization Window dialog and the popup menu preview.

  3. Drag the menu preview away so it does not overlap the Customization Window and start adding item links to this menu. To add a new bar item, click the [Add] button and select an item type. To add a link to an existing bar item, drag the required item from the Customization Window’s “Commands” tab and drop it onto the menu (see the figure below).

  4. You can categorize item links into groups by adding BarHeaderItem items.

  5. Assign your menu to the required control. There are multiple ways of doing this.

Convert Standard Menus to DevExpress Menus

The Bar Manager component allows you to quickly create DevExpress popup menus from standard menus contained on a form. Do the following:

  • Invoke the Bar Manager’s smart tag menu and click the “Convert Standard Menus” command.
  • Choose the types of standard menus to convert.

The image below shows the result: