Microsoft Visual Basic 6 is a versatile language, usable for business applications, database interface, gaming applications, and even for presentations. Professor Arthur Lee authors this Virtual Training Company tutorial. He begins by introducing code and the controls needed in Visual Basic. Learn all about variables, debugging, and creating menus, as well. To get started now, click below on the topic of your choice.
Introduction and Getting StartedIntroduction && Visual Basic OverviewThe VB 6 Environment (window orientation)The VB 6 Environment (placing controls on form)The First Project (Hello World)Writing CodeModifications to Hello WorldSaving and Running the ProjectCommon errors, DebuggingCode Window ViewsNaming Rules and conventions for controlsForm Properties (startup position, window state, Visible)More Controls and CodeText Box vs. LabelFrames with Options Buttons && Check BoxesImages (using graphical images on the form)Multiple Control manipulationUser-Friendly Features (Access keys, Tab Index)User-Friendly Features (default, cancel properties)Tab Stop, Focus, Max Length, Tool TipsCode for user convenience (clearing text boxes, labels, Set Focus)VB color Constants, Font object, With-End With CodingConcatenationDemo of Name && Address Maker-User PerspectiveDemo of Name && Address Maker-Programmer PerspectiveVariables and Code for CalculationsWhat is variable?Variables vs. ConstantsData Types supported by VBNaming rules and conventions for Variables: Option ExplicitThe VAL Function and CalculationsPutting it together - Book Sales Program (part 1)Formatting for outputAccumulating && Module-Level VariablesBook Sales Program (Wrap up)Another Demo - Shipping ChargesCoding Decision (IF-Else)Project Overview - Coffee Sales
Variables; IF - THEN - ELSE statements
Using IF Statements with the MsgBox Function
Clear button with message boxes
The CALL Statement
Other options with message boxes
Another demonstration program - More data validation
UCase/Lease functions
Debugging, Immediate Window, Stand-alone ProjectsUsing Breakpoints; Stepping through code
Using the Immediate Window
Common Errors and Things to Avoid
Using the Object Browser
The Form Icon; Creating an Executable Project (.EXE file)
Other Event ProceduresMsgBox vs. the Input Box
Click and Change Events
GotFocus/LostFocus Events
KeyPress and Mouse Events
Form Load and Form Activate Events
More on LostFocus, SetFocus and the Visible Property
Miscellaneous Form Properties
Validate Event
Creating MenusThe Menu Editor
Creating Submenus and Flyout Menus
More menu options
Adding and About Form with a Menu item
Adding a menu to an existing Project
Wrapping up the menu demo (enabled property)
Click here to find out more about the Microsoft Visual Basic 6 Training CD