Udostępnij za pośrednictwem


How to: Copy ToolStripMenuItems

At design time, you can copy entire top-level menus and their submenu items to a different place on the MenuStrip. You can also copy individual menu items between top-level menus or change the position of menu items within a menu.

To copy a top-level menu and its submenu items to another top-level location

  1. Left-click the menu that you want to copy and press CTRL+C, or right-click the menu and select Copy from the shortcut menu.

  2. Left-click the top-level menu that is after the intended new location and press CTRL+V, or right-click the top-level menu item that is before the intended new location and select Paste from the shortcut menu.

    The menu that you copied is inserted before the selected top-level menu.

To copy a top-level menu and its submenu items to a drop-down location

  1. Left-click the menu that you want to move and press CTRL+C, or right-click the menu and select Copy from the shortcut menu.

  2. In the destination top-level menu, left-click the submenu item that is above the intended new location and press CTRL+V, or right-click the submenu item that is above the intended new location and select Paste from the shortcut menu.

    The menu that you copied is inserted before the selected submenu item.

To copy a submenu item to another menu

  1. Left-click the submenu item that you want to copy and press CTRL+C, or right-click the submenu item and choose Copy from the shortcut menu.

  2. Left-click the menu that will contain the submenu item that you cut.

  3. Left-click the submenu item that is before the intended new location and press CTRL+V, or right-click the submenu item that is before the intended new location and select Paste from the shortcut menu.

    The submenu item that you copied is inserted before the selected submenu item.

See Also

Reference

MenuStrip

ToolStripMenuItem

MenuStrip Control Overview (Windows Forms)