View contents of this chapter

Using Menu Editor

The best way to learn how to build application menus with the Menu Editor is to create a simple application that includes menus. The following section will acquaint you with the steps needed to build menus. The application has the following goals:

  • Display a label on the form.
  • Offer a menu option that lets the user change the label's background.
  • Offer a menu option that lets the user exit the application.
  • Offer a menu option that lets the user change the border of the label.
  • Offer a menu option that shows a message.

First, start a new standard EXE application from the File, New Project menu option. Add a label control to the form. Assign the following property settings.

Control Property Value
Form

Name

frmMenu

Form

Caption

A Menu Application

Label Name lblMenu
Label Alignment 2-Center
Label BorderStyle 1- Fixed Single
Label Caption Select a menu option
Label Font Size 18
Label Height 500
Label Width 4000
Label BackColor Green

Play Sound VB uses the hexadecimal numbering system for the color value.

Your screen should look like the following figure

Figure 6.4



© Universal Teacher Publications        INDEX Previous Screen Next Screen