Intro to visual studio 2008

2,534 views

Published on

  • Be the first to comment

Intro to visual studio 2008

  1. 1. Introduction to Programming VB.NET & Visual Studio 2008 1
  2. 2. QuestionsWhat is Computer Programming?What are Programming Languages?What are Programming Tools? 2
  3. 3. We will use VB.Net Microsoft Visual Studio 2008 3
  4. 4. Getting StartedFile, New Project ORCreate New Project 4
  5. 5. Create New Application Select Windows Forms Application Find a place to save your project (USB pen orGive project a desktopdescriptive name if H:drive not shown) Make sure this is ticked 5
  6. 6. Visual Studio Workspace 6
  7. 7. The Bouncing PictureboxDownload the Images.zip file and unzip toyour program folderCarefully follow the instructions on: TheBouncing Picturebox WorksheetRead each line of code and make sure youknow what it doesAttempt the extra tasks at the end of theworksheet 7
  8. 8. Programming ConceptsA Timer – repeatedly executes code atintervalsA (Sub) Procedure– is a set of code statements 8
  9. 9. ConceptsVariables – to store values Dim variable As datatypeConditional Statements If ... Then 9
  10. 10. Form Co-ordinates Location = 50, 100Just like a graph inmaths, the VB.NETform uses the X and Y‘co-ordinates’ systemso we can say wherewe want to place anobjectThe unit used is thepixel 10
  11. 11. Form Co-ordinates X = 600 0,0 600,0Unlike a mathsgraph, the point 0,0is at the top left.The form size hasbeen set to 600wide and 500 deep Y = 500 600,500 11
  12. 12. Developing the Game:Ideas?Investigate: Adding a Score Adding a time limit 12

×