ASTONtraining

0773 444 7485

MS Visual Basic Introduction

Duration:

oThree Days

Pre-Requisites:

Previous experience of programming would be beneficial.

Objectives:

oProgram in Visual Basic

oWrite Visual Basic Code

oTypes of Code

oWork with Numbers and Strings

oUse Form Events

oCreate Sub-Procedures

oHandling Errors and Debugging

oAdd Code to Events

oCreate Menu Structures

oInteract with Databases

/

Core Topics:

Basic Concepts Screen Layout, Toolbar and Toolbox; Objects and Properties, Methods, ; Controls and Events; Writing Event Procedures, Setting Properties; The Properties Window
Writing Visual Basic CodeEvents in Visual Basic; The Object Browser, Creating Code for Events; Changing Object Properties using Code
Language Fundamentals Types of VB Code, Functions, Subs; Declarations, Editing and Entering Code; Visual Basic Instructions, Labelling Code; Introducing and Comparing Data Types
Making Decisions, Looping and Jumping in Code
Jumping using Go To ; If-Then-Else and Select Case Structures; Different Types of Loop Structures, ; For-Next and Do-Loop Loops; Using Variables in and Exiting from a For-Next Loop
Working with Numbers and Strings Visual Basic’s Functions and String Functions; String Functions, Formatting Strings and Numbers; Comparing Strings with the Like Operator
More on Subs and ProceduresMain Features and Creation of General Procedures; Creating a User-Defined and Sub-Procedure Function; Calling and Passing Parameters to a Sub Procedure ; Saving Procedures, The View Procedures Buttons; Adding Existing Code; Removing a Code Module or Form
Working with Arrays and StructuresDeclaring and Erasing Arrays; Placing the Dim Instruction; Changing Default Array Starting Number; Multidimensional and Dynamic Arrays
Handling Errors and Debugging CodeDebugging Techniques and Utilities in Visual Basic; Using the Debug Window, Entering Break Mode; The Intermediate Window; Step Into and Step Over; Setting Breakpoints and Watchpoints; The Watch Window and Instant Watch Option; Error Handling and Error Trapping
More on Mouse EventsEvents, Adding Code to an Event; Mouse Move Events, Capture, Arguments; MousePointer and DragIcon Properties; Drag and Drop with the Mouse; The DragMode Property
Responding to the KeyboardKeyboard Events, KeyPress, KeyUp, KeyDown; KeyPreview Property, SendKeys Statement
Creating Menu StructuresCreating a DropDown Menu, Adding Code to Menu Items; Inserting and Deleting Menus and Menu Items; Adding Separator Bars, Ellipses, Checked Menu Items and ShortKey Combinations; Dimming and Changing Menu Items; Pop-Up Menus
Manipulating File Controls
Maintaining File and Directories; Common Dialog Control
Interacting with Databases Adding a Data Control, Creating Bound Controls; Data Control Code Creation, RecordSet Property; Refresh Method, Overview of SQL; The DBGrid, DBList and DBCombo Controls; Designing a Database
IntegrationThe Setup Wizard