Building the Main Menu

Users are accustomed to using menus. In fact, when someone first starts using a program, the menus are an easy way for them to explore the functions provided in the application.

Follow these steps to create a menu on your form:

1.
Add a new Main Menu control to the form and name it mmuMain.
2.
Create a new menu item on the menu bar by entering the text &File in the Type Here box. Change the name of the new item to mnuFile. Remember, the text you enter to create the menu item becomes the Text property value, not the name.
3.
Click the Type Here box below File and enter the text &New Album. Change the Name of this item to mnuNewAlbum. Set its Shortcut property to CtrlN.
4.
Click the Type Here box below New Album and enter the ...

Get Sams Teach Yourself Microsoft® Visual C#™ .NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.