Sie sind auf Seite 1von 24

DEPARTMENT OF TECHNICAL EDUCATION

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 : 100 min.

Sub-Topic : MDI Applications - Example

CCP503.48 to 50 1
Teaching Aids : PPT, Animations and Photographs
Objectives
After completion of this class, you will be
able to know:

 Creation of MDI Applications with the


help of an example

CCP503.48 to 50 2
MDI Applications

Practical Demonstration
Problem Statement:

Consider an Inventory application, which


uses the following master tables:
 Customer
 Item

CCP503.48 to 50 3
MDI Applications
Forms have to be designed to allow
data entry in these tables.
And also forms have to be designed that allows
Placing an order
Tracking an order

CCP503.48 to 50 4
MDI Applications

The forms that the users should


be able to access are:
 Customer Details Form
 Item Details Form
 Order Form
 Tracking Order Form

CCP503.48 to 50 5
MDI Applications

solution:
The following are the steps
I. Design the required interface.
II. Integrate the application.
III.Save and execute the application.

CCP503.48 to 50 6
MDI Applications

I. Design the Required Interface


The menus can be organized as given below:

Customer Item Order Exit

Customer
Item Details Order Form
Detail

Tracking
Order Form

Fig.1

CCP503.48 to 50 7
MDI Applications
I. Design the Required Integration
Main Menu
The menus can be organized as given below:

Customer Item Order Exit

Customer
Item Details Order Form
Detail

Tracking
Order Form Sub-Menu

Fig.2

CCP503.48 to 50 8
II. Integrate the application

1. Add MDI Form from the Project menu.


This will be the MDI parent form.
• Set the WindowState property of form
to Maximized as all the MDI child forms
are to be displayed.

CCP503.48 to 50 9
• The MDIForm requires a menu which helps us
access the child forms.
• Next step is to add four forms and change their
MDIChild property as true.

CCP503.48 to 50 10
• Design all the four MDI child forms according to
the desired fields.
• Write the Code for the Menus to access forms.

CCP503.48 to 50 11
III. Save and Run the application

CCP503.48 to 50 12
MDI Form at design time

Fig.3

CCP503.48 to 50 13
MDI Form with menus at run time

Fig.4

CCP503.48 to 50 14
MDI Form with sub-menu at run time

Fig.5

CCP503.48 to 50 15
MDI Form with sub-menu at run time

Fig.6

CCP503.48 to 50 16
MDI Form with sub-menus at run time

Fig.7
CCP503.48 to 50 17
Customer Details Form at run time

Fig.8
CCP503.48 to 50 18
Item Details Form at run
time

Fig.9
CCP503.48 to 50 19
Order Form at run time

Fig.10
CCP503.48 to 50 20
Tracking Order Form at run time

Fig.11
CCP503.48 to 50 21
Quiz

1. In an MDI application, MDI form contains


child forms (True/False).

True

CCP503.48 to 50 22
Assignment
1.Create an MDI application Model with child forms
to data entry of following data.
c) Student general details
d) Attendance details
e) Unit test Marks

CCP503.48 to 50 23
Frequently Asked Questions
1. Explain procedure for creation of an MDI form.

CCP503.48 to 50 24

Das könnte Ihnen auch gefallen