Home and Learn: VB Net Course
This tutorial assumes that you have been following along from the first one
Add the following Main Menu items to the menu bar you have already designed in this section:
On your Edit Menu, place the following menu items:
On your View Menu, place the following menu items:
Just like you did with the Exit menu item, Change the Name property of ALL menu items. Do not leave them on the defaults of "MenuItem1", "MenuItem2", etc. (You should change the Name property to something relevant, and use the prefix mnu. For example, the Undo item could have the Name mnuUndo.)
When you have finished, your menus should look like these (though you can use different key combinations, if you like):
There's only one line of code to write for each menu item. You can get at the code for the click event of each menu item in exactly the same way that you did for the Exit menu item.
In the next part, you'll learn how to write code for all your new menu items. We start with the Open menu item.
Buy the Book of this Course
Email us: enquiry at homeandlearn.co.uk