CCP503
CCP503
ANDHRA PRADESH
Name of the Faculty : NAND KISHORE SINGH
Designation : LECTURER
Branch : DCCP
Institute : SGMGPT, Abdullapurmet
Year/Semester : V
Subject : VISUAL BASIC-I
Subject Code : CCP-503
Topic : MDI Applications and
Graphics
Duration : 50 Minutes
Sub-Topic : Creation of MDI Applications
Teaching Aids : PPT, Animations and
Photographs
CCP-503.44 1
Recap
Parent Form is container for Child Forms
Menus & Buttons only appear on Parent
Form
Menus of selected Child forms appear on
Parent form
Only one form can be active at a time
MDI Form closes all Child Forms
CCP-503.44 2
Objectives
On completion of this period, you would be
able to know:
CCP-503.44 3
MDI Applications
Features :
MDI applications allow to display
multiple documents at the same time,
It often has a Window menu item with
submenus for switching between
windows or documents.
MDI Applications consists of two parts,
MDI parent form and MDI child form
CCP-503.44 4
MDI Applications
Features :
CCP-503.44 5
MDI Applications
Features :
CCP-503.44 6
Sample MDI Application
Fig.4.1
CCP-503.44 7
Steps to Create MDI Application
CCP-503.44 8
Steps to create MDI Parent Form
Project menu
CCP-503.44 9
Step-1
Project → Add MDI Form
Fig.4.2
CCP-503.44 10
Step-2
Select “MDI Form” and click “Open”
Fig.4.3
CCP-503.44 11
Design view of MDI Parent Form
Fig.4.4
CCP-503.44 12
Note :
If a project already has an MDI form, the
“Add MDl Form” command on the
“Project menu” is unavailable. –
CCP-503.44 13
Steps to create MDI Child Form(s)
CCP-503.44 14
Step-1
Project Add Form
Fig.4.5
CCP-503.44 15
Step-2
Select Form and click Open
Fig.4.6 CCP-503.44 16
Step-3
Form is added to the Project
Fig.4.7
CCP-503.44 17
Step-4
Set Form1 MDIChild Property to True
Fig.4.8
CCP-503.44 18
Design view of MDI Child Form
Fig.4.9
CCP-503.44 19
Visual Basic displays special icons in the
Project Explorer for the MDI Parent Form and
MDI child forms
The MDI Parent Form requires a menu, which
helps us access the child forms
CCP-503.44 20
In the MDI Window Code Menu type
the following code
CCP-503.44 21
MDI Application At Run Time
Fig.4.10
CCP-503.44 22
Summary
MDI Application consist of MDI Parent
Form and MDI Child Form(s)
Add MDI Form for Parent form
Add ordinary Form for Child form
Set form’s MDI child property to True
CCP-503.44 23
Quiz
Objective Type
CCP-503.44 24
Questions
1. Write the procedure to create MDI
Applications in Visual Basic.
2. Write the procedure to create MDI Parent
Form and MDI Child Form(s).
CCP-503.44 25