TGN

Visual Basic 6


Although it is often overshadowed by its object-oriented offspring, Visual Basic 6 still provides the bedrock for many of the world's key applications. This course outline is our full 5 day offering, but we have provided many variations for people wishing to concentrate on particular features such as databases. The course is designed to be practical, so rather than lumping features together in a text book style, they are introduced as as we go through the process of building a real-world application

The 5 day course costs £2950 in total for up to 6 students, plus VAT and the instructor's reasonable expenses. Each student beyond 6 would cost £25 for the additional course materials.

If you are interested in this course, please contact us by email at enquiries@tgn.co.uk or by phone on
+44 (0)1285 713297.

Getting Started

Windows as an event based system. What is Visual Basic?. What Visual Basic is good for. What Visual Basic is not good for. Objects and naming. The Visual Basic Environment. Creating an application. Naming conventions. Events and event procedures. Properties. The Form Load event.

Using Controls

Text boxes. Control interaction and the If statement. More about If. Focus and tab order. Validation. List and combo boxes.

The Visual Basic Language

Declaring (dimensioning) variables. Data types. Dates and times. Local and static variables. Module and public variables. Arrays. The For loop. Multiple selection list boxes. The Do loop.

Forms and menus

Putting a menu on a form. Changing menu properties dynamically. Popup menus. Using multiple forms. Hiding and unloading forms. QueryUnload. Default and Cancel properties. The Image control. Picture formats.

Further Features

Formatting. The Timer control. Frames, option buttons and check boxes. Control arrays. Common event procedures. String handling. Modules, subs and functions. Argument passing ByRef and ByVal. Named and optional arguments. Public and Private.

Additional Controls

ListView. TreeView. The rich text box. Images and ImageList. Toolbars. Common dialogs. With and End With. Grids.

Error Handling

The Err keyword and object. On Error Resume Next. Error handling examples. Tradition Basic - On Error Goto. Error handling features. More about Err. Err and message boxes.

Creating and Using Databases

ADO - Active Data Objects. Data access terminology. Database tools. Creating a database. Data types and VB equivalents. The Data Environment. Connections and connection strings. Commands and properties. The data view window. Recordsets. Writing.

Wizards and the Data Control

The data controls. Using the wizards. Designing forms. Creating charts. Using the data control 'by hand'. Bound controls. Data formatting. Events. The data grid.

Using SQL

Structured Query Language. Select. Filtering. Aliasing. Aggregations. Using joins. Inserting rows. Updating and deleting. Using the SQL builder. More complex joins. Passing parameters to queries. Using SQL directly. Asynchronous queries. Variations.

MDI, Graphics and Printing

The Multiple Document Interface (MDI). The Window menu. Implementing the Arrange options. Dynamically creating forms and controls. Using variables to indicate state. Constants and Enums. Graphics, forms and picture boxes. ScaleMode and coordinates. Painting. Printing.

Collections and UDTs

Declaring and using collections. Adding and removing items. For Each. Forms and controls as collections. User defined Data Types - UDTs. Using UDTs.

Introducing ActiveX and COM

The OLE container control. Menu negotiation. Programming the OLE control. Using Automation. CreateObject and GetObject. Type libraries. Early and late binding. Browsing objects.

Copyright © 1996 - 2010 The Graphics Network Ltd. Registered in England No. 2549085
All trademarks used on this site are respectfully acknowledged.
Microsoft is a registered trademark of Microsoft Corporation in the United States and other countries.