Professional Documents
Culture Documents
Technical Vocational
Livelihood
QUARTER
3 Computer Programming
Republic Act 8293, section 176 states that: No copyright shall subsist in
any work of the Government of the Philippines. However, prior approval of the
government agency or office wherein the work is created shall be necessary for
exploitation of such work for profit. Such agency or office may, among other things,
impose as a condition the payment of royalties.
Quarter 3
Self Learning Module 5
MsgBox()
Writer: Jenessy Joy T. Pinga
Editors: Lerma Cantanero
Reviewers: Rowena O. Dimagiba
Introductory Message
This module was collaboratively designed, developed and reviewed by educators from
Schools Division Office of Pasig City headed by its Officer-In-Charge Schools Division
Superintendent, Ma. Evalou Concepcion A. Agustin in partnership with the Local
Government of Pasig through its mayor, Honorable Victor Ma. Regis N. Sotto.
The writers utilized the standards set by the K to 12 Curriculum using the Most
Essential Learning Competencies (MELC) while overcoming their personal, social,
and economic constraints in schooling.
This learning material hopes to engage the learners into guided and independent
learning activities at their own pace and time. Further, this also aims to help learners
acquire the needed 21st century skills especially the 5 Cs namely: Communication,
Collaboration, Creativity, Critical Thinking and Character while taking into
consideration their needs and circumstances.
In addition to the material in the main text, you will also see this box in the body of
the module:
As a facilitator you are expected to orient the learners on how to use this module.
You also need to keep track of the learners' progress while allowing them to manage
their own learning. Moreover, you are expected to encourage and assist the learners
as they do the tasks included in the module.
For the learner:
The hand is one of the most symbolized part of the human body. It is often used to
depict skill, action and purpose. Through our hands we may learn, create and
accomplish. Hence, the hand in this learning resource signifies that you as a learner
is capable and empowered to successfully achieve the relevant competencies and
skills at your own pace and time. Your academic success lies in your own hands!
This module was designed to provide you with fun and meaningful opportunities for
guided and independent learning at your own pace and time. You will be enabled to
process the contents of the learning material while being an active learner.
Lesson- This section will discuss the topic for this module.
Post-test - This will measure how much you have learned from
the entire module. Ito po ang parts ng module.
EXPECTATION
PRE–TEST
1._______________________________________________________________
2. _______________________________________________________________
3. _______________________________________________________________
4. _______________________________________________________________
5. _______________________________________________________________
6. _______________________________________________________________
7. ______________________________________________________________
LESSON
MsgBox().
A message box is a dialog box that display a piece of information. Take note
that the user cannot type anything in the dialog box.
Type of Buttons
OKOnly 0 Displays the OK button only
OKCancel 1 Display the OK and Cancel buttons
Displays the Abort, Retry and Ignore
AbortRetryIgnore 2
buttons
Display the Yes, No, and Cancel
YesNoCancel 3
buttons
Icon Styles
Critical 16 Displays the OK button only
Question 32 Display the OK and Cancel buttons
Displays the Abort, Retry and
Exclamation 48
Ignore buttons
Display the Yes, No, and Cancel
Information 64
buttons
Example application
Code:
Public Class Form1
End Sub
End Class
Output:
Button1
Button2
In the example above, button1 shows a simple button that used button style
only while button2 used Modality, Icon Styles and Type of Buttons.
ACTIVITIES
Rubrics:
WRAP–UP
1. How will you use the knowledge you acquired in this module?
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
POST TEST
Instruction: Select the letter that corresponds to the correct answer.
1. Value of SystemModal.
A. 4096
B. 65536
C. 524288
D. 1048576
2. Value of Question.
A. 16
B. 48
C. 64
D. 32
3. Value of Information.
A. 16
B. 48
C. 64
D. 32
4. Value of OKOnly.
A. 0
B. 1
C. 2
D. 3
5. Value of AbortRetryIgnore.
A. 0
Computer Programming Volume II by Innovative Training Works, Inc. •
Computer Programming Volume I by Innovative Training Works, Inc. •
REFERENCES
Wrap up:
Style of message box
1. OKOnly
2. OKCancel
3. AbortRetryIgnore
4. YesNoCancel
5. YesNo
6. RetryCancel
Icon 1style
1. Critical
2. Question
3. Exclamation
4. Information
Modality of message box
1. ApplicationModal
2. SystemModal
3. MsgBoxSetForeground
4. MsgBoxRight
5. MsgBoxRtlReading
Post-test: Pre-test:
1. A 1. A
2. D 2. C
3. C 3. B
4. A 4. A
5. C 5. A
KEY TO CORRECTION
D. 3
C. 2
B. 1