0% found this document useful (0 votes)
81 views13 pages

2.3 Menu SubMenu

Uploaded by

Hasniza Harun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views13 pages

2.3 Menu SubMenu

Uploaded by

Hasniza Harun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

FP613 :

.NET TECHNOLOGY
2.3 Use Menus and Submenus.
2.3 USE MENUS AND SUBMENUS.

By the end of the class, students should be


able to:

2.3.1 Explain the usage of menus and


submenus.
2.3.2 Create menu with the Menu Editor: drop-
down, multi-level and pop-up menus.
2.3.3 Modify menus at run time.
2.3.4 Write, run, test and debug program for
the menu commands.
MENU & SUBMENU
 Give end user an alternative to click buttons
on a form

 Menu – the drop-down list of items below a


menu title.
 Submenu – the new list when an item on the
menu has another list of items.
 Popup Menu (Context menu) – shortcut
menu that pop up when we right-click
ANATOMY OF THE MENU…. 
Menu Title Menu bar

Hot key
Menu Title
Menu bar

Separator
bar

Shortcut key :
key modifier (Ctrl, Alt, Shift +
letter/number

Enabled menu
title

Disabled menu
title

Hot key : allow to select menu/drop down menu item by pressing


Alt key + letter/number
MENU CONTROLS

To create pop-up (context) menus

To create menu system - appears across


the top of a form

To create a status bar – appears across


the bottom of a form

To create the toolbar – appears below


menu system
CREATE MENU WITH THE MENU EDITOR: DROP-
DOWN, MULTI-LEVEL AND POP-UP MENUS.
CREATING MENU TITLES – DROPDOWN & MULTILEVEL

ToolStripMenuItem
1

2
CREATING MENU TITLES –
POPUP MENUS (CONTEXT MENU)

1 3

4
form's
ContextMenuStrip
property to
ContextMenuStrip1.

2
CREATING MENU TITLES –
POPUP MENUS (CONTEXT MENU)
 Build the context menu as shown.
 Set the form's ContextMenuStrip property to
ContextMenuStrip1.
 Run the project – confirm that the context
menu displays whenever we right-click
different parts of the form.
CREATING MENU TITLES –
POPUP MENUS (CONTEXT MENU)
 A form can have multiple context menus so that we
can tailor the menu for different controls – each
context menu requires its own ContextMenuStrip
control.
 The context menu for a form or control on a form is
set by storing the name of the context menu to the
ContextMenuStrip property for the control or form.
 If we have a single context menu – assign it to the
form – this will cause most controls to have this as
the assigned context menu.
 Some controls, such as textbox controls, have built-
in context menus – they have the copy, cut, and
paste text context menu.
FURTHER READINGS
 CIDOS :
1. LAB02-Activity Menu Submenus
2. Note and Activity-Menus
3. Any book related..

You might also like