Create a Main Menu in Visual Basic

This tutorial demonstrates how to build MENUS in Visual Basic programs.


EXAMPLE 1:

End result of this will be a form containing a menu with two top-level items(File and Help).

File menu, shown below, will have the following level-two items below it: NewOpenSaveSave AsPrint, andExit. Note that separator bars appear above the Save, Print, and Exit items.











The Help menu contains just one level-two item below it, About:












To build a menu for use with your Visual Basic program, you use the Menu Editor, which appears as an icon in the toolbar of the VB IDE. It is the circled item in the screen shot below:









Alternatively, you can invoke the Menu Editor from the Tools menu item as shown below:




No comments:

Post a Comment