Академический Документы
Профессиональный Документы
Культура Документы
ANDHRA PRADESH
Designation : Lecturer
Branch : CCP
dialogue control .
Duration: 50 Mts.
CCP-503.14 1
Sub Topic : Adding functionality to Menus with code
Objectives :
Upon the completion of this period you will be
able to understand about
• Adding Functionality to Menus with Code
CCP-503.14 2
Recap
CCP-503.14 3
Writing Code for Menu Controls
Menu item get functionality with code
CCP-503.14 4
Menu structure for adding Code
CCP-503.14 5
Writing Code for Menu Controls
CCP-503.14 6
Writing Code for Menu Controls
Initially the window is small and the items
Form is green in color.
CCP-503.14 7
Initial stage of execution
Disabled
CCP-503.14 8
Initial stage of execution
Disabled
CCP-503.14 9
Writing Code for Menu Controls
The following code is entered in the
MnuRed_Click() Procedure.
CCP-503.14 10
When Menu Item Red is Clicked
Disabled
CCP-503.14 11
Writing Code for Menu Controls
The following code is entered in the
MnuBlue_Click()Procedure.
CCP-503.14 12
When Menu Item Blue is Clicked
Disable
d
CCP-503.14 13
Writing Code for Menu Controls
CCP-503.14 14
When Menu Item Green is Clicked
Disabled
CCP-503.14 15
Writing Code for Menu Controls
CCP-503.14 16
When Menu Item Large is Clicked
Disabled
CCP-503.14 17
Writing Code for Menu Controls
The following code is entered in the
MnuSmall_Click() Procedure.
CCP-503.14 18
When Menu Item Small is Clicked
Disable
d
CCP-503.14 19
Writing Code for Menu Controls
The following code is entered in the MnuExit_Click()
Procedure.
Private Sub MnuExit_Click()
End
End Sub
When Exit Menu item is clicked, the application ends
CCP-503.14 20
Summary
Adding functionality to Menu items with code
CCP-503.14 21
Quiz
1. To set the Form size to maximum WindowState
property to be set to ___.
A) 0
B) 1
C) 2
D) 3
CCP-503.14 22
Quiz
2. Which event of Form is executed first when we run the
Form?
A) Load
B) Click
C) UnLoad
D) Hide
CCP-503.14 23
Assignment
1. Create an application to change height, width of a
command button with a Menu.
CCP-503.14 24
Frequently Asked Questions
1. Explain the process of creating Menus
at run time.
CCP-503.14 25