CODING FOR A MENU ITEM

The method of writing code for a menu item is same as for other controls.

Click the menu item in the form under design. This opens the menu item’s event handler, like this:

Private Sub mnuFile New-Click ()

End Sub

Add the code of which will execute when the user will choose this menu item to the event handler procedure.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s