5. Create New Application
Select Windows
Forms Application
Find a place to save
your project (USB pen or
Give project a desktop
descriptive name if H:drive not shown)
Make sure this
is ticked
5
7. The Bouncing Picturebox
Download the Images.zip file and unzip to
your program folder
Carefully follow the instructions on: The
Bouncing Picturebox Worksheet
Read each line of code and make sure you
know what it does
Attempt the extra tasks at the end of the
worksheet
7
8. Programming Concepts
A Timer – repeatedly executes code at
intervals
A (Sub) Procedure– is a set of code statements
8
9. Concepts
Variables – to store values
Dim variable As datatype
Conditional Statements
If ... Then
9
10. Form Co-ordinates
Location = 50, 100
Just like a graph in
maths, the VB.NET
form uses the X and Y
‘co-ordinates’ system
so we can say where
we want to place an
object
The unit used is the
pixel
10
11. Form Co-ordinates
X = 600
0,0 600,0
Unlike a maths
graph, the point 0,0
is at the top left.
The form size has
been set to 600
wide and 500 deep
Y = 500
600,500
11