![]() |
||
Table of Contents |
||
|
|
Introduction | |
| Running Visual Basic | - getting started
- viewing the different windows |
|
| An Example Program | - opening and running a project | |
| Building Your First Project | - introducing forms and controls
- the Hello World program |
|
| Hello World Revisited | - more about properties | |
| The Conversion Program | - horizontal scroll bars
- variables - simple calculations |
|
| More on Scroll Bars | - colour codes and RGB values | |
| Input Boxes | - keyboard shortcuts
- using an Input Box |
|
| Branching - If..Then..Else..End If | - making decisions | |
| Averages | - using image controls
- calculating an average |
|
| Loops | - summing integers
- keeping a running total - integers and Long integers |
|
| Conditional Loops | - calculating a factorial
- Do..While loops - Do..Until loops |
|
| Checkboxes and Option Buttons | - a survey
- more keyboard shortcuts - using a Message Box - using the TabIndex property |
|
| The Timer Control | - a traffic lights sequence
- a control array of images - Boolean variables |
|
| Creating a Menu Bar | - creating a menu
- choosing colours |
|
| Enhancing the Menu Program | - specification for a menu
- standard named colours - adding a sub-menu |
|
| Separator Bars | - adding a separator bar | |
| Dragging and Dropping | - using the mouse to drag and drop
- detecting mouse buttons - properties and methods |
|
| Using the Mouse | - using different mouse events
- moving an image |
|
| The Shape Control | - drawing standard shapes
- line thickness |
|
| The Drawing Program | - a simple drawing/painting program
- setting up a colour palette - drawing lines - drawing freehand - using a flag - different line thicknesses - different line styles |
|
| Common Dialog Boxes | - using custom controls
- Open File dialog box - Print File dialog box - Save As, Color and Font dialog boxes |
|
| Text Files | - the ASCII code
- open files to read, write or append - writing text to a file - reading text from a file - a simple text editor |
|
| Arrays | - an ordered list
- creating an array - calculating an average |
|
| The Grid Control | - setting up the grid
- moving around the grid - assigning values to a cell - simple calculations - setting the focus |
|
| Structured Data Types | - defining a data type
- an array of records - declaring a procedure - writing structured data to a file - reading data from a file |
|
| Sorting | - sorting data
- a variation on the 'bubble' sort - sorting explained |
|
| The Game Zone | - bats, balls and bouncing...
- the Select Case construction |
|
| Adding Spin | - adding spin to control the ball
- declaring a function |
|
| Conclusion | ||
|
|
© ePublish Scotland 1999 |
|