Senior High School
Programming .Net Technology
Quarter 1 - Week 2
Perform Object-Oriented Programming
TLE_ICTP.NET 11-2DAMWAIc-h-35
Introductory Message
For the facilitator:
Welcome to the Programming .Net Technology Alternative Delivery Mode (ADM) Module on
Perform Object-Oriented Programming
This module was collaboratively designed, developed and reviewed by educators from public
institutions to assist you, the teacher or facilitator, in helping the learners meet the standards set by
the K to 12 Curriculum while overcoming their personal, social, and economic constraints in schooling.
This learning resource hopes to engage the learners into guided and independent learning activities
at their own pace and time. Furthermore, this also aims to help learners acquire the needed 21st
century skills 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:
Notes to the Teacher
This contains helpful tips or strategies that
will help you in guiding the learners.
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. Furthermore,
you are expected to encourage and assist the learners as they do the tasks included in the module.
For the learner:
Welcome to the Programming .Net Technology Alternative Delivery Mode (ADM) Module on
Perform Analysis of Development Resources.
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 resource while being an active learner.
This module has the following parts and corresponding icons:
This will give you an idea of the skills or competencies
you are expected to learn in the module.
What I Need to Know
This part includes an activity that aims to check what
you already know about the lesson to take. If you get all
What I Know the answers correct (100%), you may decide to skip this
module.
1
What’s In This is a brief drill or review to help you link the
current lesson with the previous one.
In this portion, the new lesson will be introduced to you
What’s New in various ways; a story, a song, a poem, a problem
opener, an activity or a situation.
This section provides a brief discussion of the lesson.
What is It This aims to help you discover and understand new
concepts and skills.
This comprises activities for independent practice to
What’s More solidify your understanding and skills of the topic. You
may check the answers to the exercises using the
Answer Key at the end of the module.
This includes questions or blank sentence/paragraph
What I Have Learned be filled in to process what you learned from the
lesson.
This section provides an activity which will help you
What I Can Do transfer your new knowledge or skill into real life
situations or concerns.
Assessment This is a task which aims to evaluate your level
of mastery in achieving the learning competency.
In this portion, another activity will be given to you to
Additional Activities enrich your knowledge or skill of the lesson learned.
Answer Key This contains answers to all activities in the module.
At the end of this module you will also find:
References - This is a list of all sources used in developing this module.
The following are some reminders in using this module:
1. Use the module with care. Do not put unnecessary mark/s on any part of the module.
Use a separate sheet of paper in answering the exercises.
2. Don’t forget to answer What I Know before moving on to the other activities included
in the module.
3. Read the instruction carefully before doing each task.
4. Observe honesty and integrity in doing the tasks and checking your answers.
5. Finish the task at hand before proceeding to the next.
6. Return this module to your teacher/facilitator once you are through with it.
2
If you encounter any difficulty in answering the tasks in this module, do not hesitate to consult your
teacher or facilitator. Always bear in mind that you are not alone.
We hope that through this material, you will experience meaningful learning and gain deep
understanding of the relevant competencies. You can do it!
What I Need to Know
This module provides varied activities that will help you understand the
recommendation and easily create your own.
At the end of this module, you are expected to:
1. Understand the Use of Visual Studio 2013 version or higher using
the basic data types, operators, and expression
2. Construction of standard programming language
What I Know
Direction: Write the word True if the statement is correct, and False if not. Write your
answer in your activity notebook.
1. Visual Basic Express 2013 is a version of Visual Basic that was released in 2011 by
Microsoft.
2. VB is a programming language implemented on the .NET Platform that is completely
object-oriented.
3. Visual Basic has three templates.
4. Ctrl+Shift+N is the short cut key for new project.
5. You can change the default project name of WindowsApplication1 at the bottom of
this dialog box.
6. The Form window, the Solution Explorer window, and the Properties window are part
of the VB2013 IDE.
7. Toolbox in VB.NET is consists of buttons, containers, menu options
8. Pointer is used for deleting and forms to move and resize.
9. List Box Controls which list the number of objects.
10. Picture Box display text files.
3
What’s In
In the previous lesson, you have learned about the concept of .Net Framework.
Now, let us try to find out more about programming based on the previous lesson.
What word comes to your mind when you hear the word “toolbox”? Write your
answers in your activity notebook.
______
______ ______
Toolbox
______ ______
______
What’s New
Direction: Using your previous knowledge about these words, construct your own definition
for the following concepts:
1. Toolbox
_________________________________________________________________________
_________________________________________________________________________
2. Message Box
_________________________________________________________________________
_________________________________________________________________________
3. Window Form
_________________________________________________________________________
_________________________________________________________________________
4
What Is It
Visual Basic Express 2013 is a version of Visual Basic that was released in 2013 by
Microsoft. It is a programming language implemented on the .NET Platform that is completely
object-oriented. Visual Basic Express 2013 is combined with other Microsoft C# and C++
programming languages in an IDE known as Visual Studio 2013, close to Visual Basic 2012.
Although the new Visual Studio 2017 was released by Microsoft, you can still download
the older version of Visual Studio 2013 Express Edition from the link below.
https://www.visualstudio.com/vs/older-downloads/
It is necessary to download the Visual Studio for you to create and follow the activities
for this module.
Visual Studio 2013 Integrated Development Environment
Creating a New Project in Visual Studio 2013
Three templates, Visual Basic, Visual C# and Visual C++, are part of the New Project
Page. Since we are only studying Visual Basic 2013, Visual Basic will be selected. The four
types of projects you can build in Visual Basic 2013 are Windows Forms Application, WPF
Application, Console Application, and Class Library.
5
To create new file
1. Click File
2. Select New
3. Choose Project
or simply use the short cut key Ctrl+Shift+N
Since we are just learning how to build Windows applications, we can choose Windows
Forms Application. You can change the default project name of WindowsApplication1 at the
bottom of this dialog box to any other name that you want, such as FirstProgram. Select OK
to proceed after you have renamed the project.
6
Toolbox
Solution
Form
Explorer
Window
Properties
window
The Form window, the Solution Explorer window, and the Properties window are part
of the VB2013 IDE. It also consists of a toolbox that includes several useful controls that help
you to create your program for Visual Basic 2013.
Toolbox in VB.NET
It consists of buttons, containers, menu options, crystal report controls, data controls,
dialogs, components, print controls, which are used in a layout to build the application
interfaces.
Following table lists the Common Controls listed in the ToolBox
Tool Name Description
Pointer Used for controls and forms to move and
resize.
Button This control, once accessed, activates an
action.
Check Box Controls that have either true or false values
CheckedList Box Checkbox Lists next to each object
Combo Box A mix of list and text box controls that allow
text to be selected as well as edited.
DateTimePicker To choose the day and date, screen a
calender picker.
Label Displays a label text.
LinkLabel Displays a label with a link text.
7
List Box Controls which list the number of objects.
List View ListBox control extension with options to add
icons, headings, etc.
Masked Text Box Using a mask to distinguish between right and
incorrect text input.
MonthCalendar Enable to select date at runtime
Notify Icon Shows an icon in the Windows Tray
NumericUpDown Allows an integer with particular decimal
places within a particular range to be entered
Picture Box Display image files
Progress Bar Display the progress of a task.
Radio Button It allows an option to be picked from a group of
choices.
Rich TextBox Allows editing, Rich Text input.
Text Box Controls that are used to enter or view text.
ToolTip Displays text on tooltips.
TreeView It shows the node hierarchy.
WebBrowser Allows an html document to be opened in
shape.
Image link: https://www.hscripts.com/tutorials/vbnet/tool-box.html
Now, we are going to proceed on how to develop your first program. First, in the
Properties window, change the text of the form to “My Activity”, which will appear as the
program title.
8
Next, insert a button that can be found in your Toolbox and change the text of the
button to OK
Now, double click the OK button to open the code window. You can now enter the code
between Private Sub and End Sub. The first code is MsgBox.
MsgBox – this is a pop up message that display in a form of box. To use this code,
simple enclose the message into a double quote (“) and parenthesis. See sample below
MsgBox(“My First Activity”)
Now, click the Start button on the toolbar or press F5 to run the program, and then
click the OK button to open the dialog box showing the program and the message will appear.
9
The MsgBox function is a built-in feature of Visual Basic 2013 and shows the text
contained inside the brackets. We will learn more VB2013 programming techniques in
upcoming lessons now that you have developed your first program.
What’s More
Independent Activity 1
Directions: Based on your readings, answer the following:
a. How will you create a new project using Visual Basic 2013?
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
b. What is the function of Msgbox?
_________________________________________________________________________
_________________________________________________________________________
_________________________________________________________________________
Independent Assessment 1
Directions: In your computer or laptop, create a new .Net Project using
Window Form Application of Microsoft Visual Studio 2013 or
higher version.
1. Name your Project as “Independent Assessment 1”
2. Rename your Form as “My Assessment”
3. Screen shot your file and send to it your teacher write your answer in
your activity notebook
See sample output below
10
Independent Activity 2
Directions: Identify at least (5) tools that can be found in Microsoft Visual Studio
Toolbox. Using your own words, give a short meaning or purpose for each.
Examples are provided for you. Do it in your activity notebook.
Tools Brief description /Purpose
Pointer Use to select and move an object.
Independent Assessment 2
Directions: Create a new .Net Project using Window Form Application of
Microsoft Visual Studio 2013 or higher version.
1. Name your Project as “Tools in Visual Studio”
2. Insert at least 5 tools that can be found in Visual Studio Toolbox
3. Screen shot your file and send to it your teacher or write your
answer in your activity notebook
See sample output below
11
Independent Activity 3
Directions: Enumerate three words related to message box. Write your answers in your
activity notebook.
Message Box
• _______________
• _______________
• _______________
Independent Assessment 3
Directions: Create a new .Net Project using Window Form Application of
Microsoft Visual Studio 2013 or higher version.
1. Name your Project as “Message Box”.
2. Insert a button, rename a button “Message”
3. Insert a msgbox function in the button icon.
4. Display your complete name using msgbox function.
5. Screen shot your file and send to it your teacher write your answer
in your activity notebook
See sample output below
12
What I Have Learned
Directions: Let’s summarize our lesson by answering the following
questions. Write your answers in your activity notebook.
1. How to create a new .net project?
__________________________________________________________
__________________________________________________________
2. How to rename the file of your .net project?
__________________________________________________________
__________________________________________________________
3. How to edit the text value of the window form?
What I Can Do
Directions: Create a new .Net Project using Window Form
Application of Microsoft Visual Studio 2013 or higher
version.
1. Name your Project as “What I Can Do”.
2. Insert a button, rename a button “OK”
3. Insert a msgbox function in the button icon.
4. Display the text “I am a programmer”
5. Screen shot your file and send to it your teacher or write
your answer in your activity notebook.
See sample output below
13
Assessment
Directions: Read the following statements and write the letter of the correct answer on
your activity notebook.
1. A version of Visual Basic that was released in 2013 by Microsoft.
A. Visual 2013 C. Visual Basic Express 2013
B. Visual Basic 2011 D. Visual Studio 2012
2. A programming language implemented on the .NET Platform that is completely object-
oriented.
A. CSS C. Java Programming
B. HTML D. Visual Basic
3. The short cut key for new project.
A. Ctrl+N C. Ctrl+Shift+N
B. Ctrl+Shift D. Ctrl+Shift+O
4. It consists of buttons, containers, menu options.
A. Menu C. Toolbar
B. Options D. Toolbox
5. Used for controls and forms to move and resize.
A. Button C. Combo Box
B. Check Box D. Pointer
6. This control, once accessed, activates an action.
A. Button C. Combo Box
B. Check Box D. Pointer
7. Controls that have either true or false values
A. Button C. Combo Box
B. Check Box D. Pointer
8. A mix of list and text box controls that allow text to be selected as well as edited.
A. Button C. Combo Box
B. Check Box D. Pointer
9. To choose the day and date, screen a calendar picker.
A. DateTimePicker C. LinkLabel
B. Label D. List View
10. Displays a label text.
A. DateTimePicker C. LinkLabel
B. Label D. List View
11. Displays a label with a link text.
A. DateTimePicker C. LinkLabel
B. Label D. List View
12. ListBox control extension with options to add icons, headings, etc.
A. DateTimePicker C. LinkLabel
B. Label D. List View
13. Enable to select date at runtime
A. Masked Text Box C. Notify Icon
B. MonthCalendar D. Rich TextBox
14. Shows an icon in the Windows Tray
A. Masked Text Box C. Notify Icon
B. MonthCalendar D. Rich TextBox
14
15. Using a mask to distinguish between right and incorrect text input.
A. Masked Text Box C. Notify Icon
B. MonthCalendar D. Rich TextBox
Additional Activity
Direction: Identify the parts of Graphical User Interface of Microsoft Visual Studio 2013.
Using your own words, give a short definition for each.
1. ______
3. ______
2. ______
4. ______
1. _______________________________________________________________
2. _______________________________________________________________
3. _______________________________________________________________
4. _______________________________________________________________
15
References
Introduction to Visual Basic 2013l. (2020). Retrieved 27 December 2020, from
https://www.vbtutor.net/vb2013/vb2013_lesson1.html
Toolbox in VB.NET. (2020). Retrieved 27 December 2020, from
https://www.hscripts.com/tutorials/vbnet/tool-box.html
Rubric Programming Project. (2020). Retrieved 27 December 2020, from
https://3gen3.weebly.com/rubric-programming-project.html
17
Appendix
Programming Rubrics
Criteria 5 4 3
Write up is Write states clearly Explain some of Minimal effort in
complete and in detail what the the program but the write up,
program is in unclear on unclear on how
details the program
works
Program Does what it was Works most of Works
works designed to do with the time, some intermittenly
no issues issues
Interface is How to use the Interface use Interface doesn’t
well done. interface is clear and requires some work or is too
Easy to unambiguous explanation complicated to
understand. use.
Rubric adapted from https://3gen3.weebly.com/rubric-programming-project.html
18