Intro to visual studio 2008
-
Upload
nickywalters -
Category
Documents
-
view
1.297 -
download
1
Transcript of Intro to visual studio 2008
1
Introduction to Programming
VB.NET
&
Visual Studio 2008
22
Questions
What is Computer Programming?
What are Programming Languages?
What are Programming Tools?
33
We will use
VB.Net
Microsoft Visual Studio 2008
44
Getting Started
File, New Project
OR Create New
Project
55
Create New Application
Find a place to save your project (USB pen or desktop if H:drive not shown)
Select Windows Forms Application
Give project a descriptive name
Make sure this is ticked
66
Visual Studio Workspace
77
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
88
Programming Concepts
A Timer – repeatedly executes code at intervals
A (Sub) Procedure– is a set of code statements
99
Concepts
Variables – to store valuesDim variable As datatype
Conditional StatementsIf ... Then
1010
Form Co-ordinates
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
Location = 50, 100
1111
Form Co-ordinates
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
0,0 600,0
600,500
X = 600
Y = 500
1212
Developing the Game:
Ideas?
Investigate:Adding a Score
Adding a time limit