Tutorial: Programming in Visual Basic 6.0

Tutorial: Programming in Visual Basic 6.0. This tutorial contains a beginner?s guide to Visual Basic 6.0, introducing the programming …

More PDF Content

Tutorial: Programming in Visual Basic 6.0
Page 1
Tutorial: Programming in Visual Basic 6.0 This tutorial contains a beginner’s guide to Visual Basic 6.0, introducing the programming environment, defining key terms and introducing exercises to demonstrate the five control structures (sequence, selection: binary and multiway, iteration: pre and post test). Syllabus outcome H5.3 A student selects and applies appropriate software to facilitate the design and development of software solutions Students learn to implement a fully tested and documented software solution in a methodical manner. (SDD syllabus, p.51) The following headings may help you navigate: Activity 1: Welcome screen and menu editor Activity 2: Event handlers and scroll bars Naming conventions Data types, variables and functions Activity 3: Messages and input boxes Activity 4: Create a calculator and avoid division by zero Sequence Binary Selection Activity 5: Measurement converter Multiway selection Activity 6: Multiway selection Activity 7: Control arrays Iterations Activity 8: Pre-test loops Activity 9: Post-test loops Activity 10: Random number generator Activity 11: Using a counter in a pre-test loop Activity 12: Nested FOR loops and arrays Organising your first project The first step is to create a project template within VB, to organise and store your work. This will consist of a menu structure with headings that will let you access the many exercises and examples you complete. Activity 1 • Open VisualBasic 6.0 • Use the file menu to open a new project with a blank form. • Use the propertieswindow to set – Main.frm as the form name. – My programs as the caption. – BackColor to White. – BorderStyle to Fixed Single. – WindowState to Maximised. • Find the Menu icon and click on it to select it. Enter the following menu headings:
Page 2
Quit Introduction with indented subheadings of Example1 Example2 Click OK after each menu caption and name are typed. • Click on Quit menu heading and enter the following code. This procedure is used to exit from running the project display and return to the design screens. Private Sub Quit_Click() Unload me

Download Tutorial: Programming in Visual Basic 6.0 pdf from www.hsc.csu.edu.au, 15 pages, 249.7KB.
Related Books

2 Responses to “Tutorial: Programming in Visual Basic 6.0”

  1. likes very much

  2. Apple GarageBand apk is a great music production studio for those who are looking for a software utility to help take their music production to the next level.

Leave a Reply