Adding Menus
 

Start a new project. To your new form, use the toolbox to add a MenuStrip control:


 


 


To start building your menu, click inside the area that says "Type Here". Type the word File:


 


 



  • Press F7 on your keyboard to go to the code window


  • Click the black arrow at the top, where it says General:






 

Add your Menu Code Here

 


 

The word "Me" refers to the form.

 


 

 

Add a Sub Menu

 


 


 

Underline Shortcut

 



  • Click on your New menu item once. This will select it


  • Position your cursor before the "N" of New


  • Type an ampersand symbol (&)


Key combination shortcuts



  • In Design time, select the Exit item on your menu


  • Look at the properties box on the right


  • Locate the ShortcutKeys item:




  • Click the down arrow to reveal the following:


  • (c) Shilpa Sayura Foundation 2006-2017