Quickly insert standard menu items on a form in C#

[menu items]

Many applications need standard File, Edit, Tools, and Help menus. Visual Studio provides a simple way to build standard menu items. You can then edit the menu to add new items and remove items that you don’t need. Visual Studio initially gives the menu items unwieldy names like undoToolStripMenuItem and indexToolStripMenuItem so you may also want to change them.

To create the standard menu items, add a MenuStrip to the form. In the Form Designer, select the MenuStrip and click its smart tag (the little right-pointing triangle in its upper right corner) to open the smart tag dialog shown in the picture above. Then click the Insert Standard Items link and you’re done.

The following figure shows the menus that are created.

[menu items]

Download Example   Follow me on Twitter   RSS feed   Donate

This entry was posted in menus, user interface and tagged , , , , , , , , , , . Bookmark the permalink.