Professional Documents
Culture Documents
Programming
Skill Area 502 : Apply Programming
Fundamentals
Part 1:
Demonstrate an understanding of basic
terminologies
List
Program Development
Cycle
1.
2.
3.
4.
5.
6.
7.
Integrated Development
Environment (IDE)
The
Integrated Development
Environment (IDE) when you launch VB
2008 Express consists of a few panes,
namely:
Basic Terminologies of
Visual Programming
Language Components
The language you write and speak has
structure.
Programs written in Visual Basic also have a
structure:modulesare
like
chapters,proceduresare
like
paragraphs,
andlines of codeare like sentences.
Visual
Basic has rules that define how
categories of words, known asprogramming
elements,are used to write programs.
Programming elements in Visual Basic
includestatements,declarations,methods,
operators, andkeywords.
Modules
Procedures
Creating Application
with Visual Basic
Express 2008
Starting
Starting
Blank
Form
Solution
Explorer
Toolbox
Properties
Windows
Toolbox
Things
The
Toolbox (cont)
To
Toolbox (cont)
As
Properties
Properties
List Properties
What is a Property?
VB Properties
Property box.
Click inside the area next to
"Text", and delete the word
"Form1" by hitting the
backspace key on your
keyboard
When "Form1" has been
deleted, type the words "My
First Form
Properties
Click anywhere on the form that is not a label
or a textbox, somewhere on the form's grey
areas. The form should have the little sizing
handles now, indicating that the form is
selected.
On the right of the design environment there
should be the following Properties box:
tool
Adding a Label
toolbox
Double click the label icon
A new label is added to your form
Naming a Label
VB Properties
Font: Arial
Font Style: Bold
Font Size: 10
MsgBox:
We told the program to display a message box that
Private
Private means that no other part of the programme can
Sub
Short for Subroutine. The "Sub" word tells VB that some
Button1
This is the name of our button. You might think that
_Click ( )
This is something called an Event. In other words, when
the button is clicked, the Click Event will fire, and the
code we're going to write will be executed
End Sub
The subroutine ends right here. This signifies the end of
our code
Code: