Académique Documents
Professionnel Documents
Culture Documents
ANDHRA PRADESH
Name of the faculty : G. Radha
Designation : Lecturer
Branch : CCP
Institute : 026 - SG Govt. Polytechnic,
Adilabad
Year / Semester : III Year / V Semester
Subject : Visual Basic – I
Subject Code : CCP - 503
Topic : Understand Menus and
Common dialogue control .
Duration : 50 Mts.
Sub Topic : Custom dialogue boxes.
Teaching Aids : Animations & Images
CCP-503.19 1
Recap
CCP-503.19 2
Objectives :
CCP-503.19 3
Custom Dialogue Boxes
Custom Dialogue Box is a Form that is created
by the user containing controls including
Command button, Option button and Text Box
Controls
Custom Dialogue Boxes are customized by the
user
CCP-503.19 4
Design a Custom Dialogue Box
CCP-503.19 5
Design a Custom Dialogue Box
Name Option2
Option Button Caption Wednesday
Name Option3
Option Button Caption Thursday
Name Option4
Option Button Caption Friday
Name Option5
CCP-503.19 7
Design a Custom Dialogue Box
CCP-503.19 8
Design a Custom Dialogue Box
Two Menu Items are added to the Dialog.frm Form
of the Dialog.vbp project with the following
characteristics.
Caption Name
….- MnSep3
CCP-503.19 9
After adding the Menu Items, Dialog Form
looks like
CCP-503.19 10
Design a Custom Dialogue Box
The following code is entered in the
MnDay_Click() procedure of Dialog Form.
CCP-503.19 11
Design a Custom Dialogue Box
CCP-503.19 12
Design a Custom Dialogue Box
CCP-503.19 13
Design a Custom Dialogue Box
The following code is entered in the
Command1_Click() procedure of Custom Form.
Private Sub Command1_Click()
If Option1 = True Then Custom.Tag = "Monday"
If Option2 = True Then Custom.Tag = "Tuesday"
If Option3 = True Then Custom.Tag = "Wednesday"
If Option4 = True Then Custom.Tag = "Thursday"
If Option5 = True Then Custom.Tag = "Friday"
If Option6 = True Then Custom.Tag = "Saturday"
If Option7 = True Then Custom.Tag = "Sunday, So
No Transaction"
Custom.Hide
End Sub
CCP-503.19 14
Design a Custom Dialogue Box
CCP-503.19 15
Design a Custom Dialogue Box
CCP-503.19 16
Design a Custom Dialogue Box
CCP-503.19 17
Design a Custom Dialogue Box
CCP-503.19 18
Design a Custom Dialogue Box
CCP-503.19 19
Summary
Custom Dialogue Control.
CCP-503.19 20
Quiz
CCP-503.19 21
1. A Form can be used as a _______
dialogue box.
A) Predefined
B) Custom
C) Common
D) System Default
CCP-503.19 22
Frequently Asked Questions
CCP-503.19 23
Assignment
1. Prepare an application with a dialogue
box that asks a month name and shows
a number of days in the month.
CCP-503.19 24