The VB Programmer Advanced Solutions for Your Business
Home About Us Projects Clients Testimonials VB Tutorials Products Contact Us
 
..........................................................
Pic
..........................................................
 
Client Area
User ID :
Password :
 
 
VB Tutorials - Classic VB (VB6)
 
You are currently viewing the tutorials for Classic VB (VB6). For VB.NET (VB 2005/2008) tutorials, click here.
 
The tutorials, how-tos, and code samples provided on this page are available free of charge (with the exception of the "Extras" section). You can use these as an on-line resource to access any individual topic on this page, as well as download any associated VB project files or other files associated with that individual topic for no cost whatsoever. This material is also available as a low-cost e-book, featured on our Products page.

These tutorials were developed by the president of The VB Programmer, who, in addition to working full-time as a programmer for over 20 years, also worked part-time as a computer programming instructor for many years. In teaching numerous sessions of Visual Basic, he developed many tutorials and how-to write-ups for his students. Those write-ups evolved into the articles now available on this page.

A word about Classic Visual Basic (VB6). Yes, VB.NET/2005/2008 has been around for quite some now and cannot be ignored. However, "classic" Visual Basic (VB6) is still widely used in industry and educational institutions. It is compatible with all current MS operating systems (including Vista) and will be around for quite some time. If you need to learn VB6 (or enhance your current VB6 knowledge) for work or school, you should find the material on this page very helpful.

To see what others have said about the tutorials, check out our Feedback page.
 
Arrow 1. Introduction / Using the IDE
  Starting VB
  The VB IDE (Integrated Development Environment)
  Customizing the IDE
  Working with the IDE 1 (Forms and Controls)
  Working with the IDE 2 (Writing Code)
  Working with the IDE 3 (Running, Saving, Re-opening)
  Creating a Stand-Alone Executable
   
Arrow 2. Variables, Operators, & Assignment Statements
  Anatomy of a VB Project
  Variables 1 (Data Types and Naming Conventions)
  Variables 2 (Declaration and Scope)
  Variables 3 (Legal vs. Illegal Declaration Summary)
  Static Variables
  Declaring Arrays
  Declaring Constants
  Declaring User-Defined Types (UDTs)
  Assignment Statements
  Arithmetic Operators
  String Operators (Concatenation)
   
   
Arrow 3. Basic Input/Output
  Setting up the "Try It" Examples
  InputBox
  Cls
  Print 1 - Using the Semicolon Separator
  Print 2 - Using the Comma Separator
  Print 3 - Using the Tab(n) Function
  Print 4 - Using the Spc(n) Function
  MsgBox
  PrintForm
  Basic Hard Copy Printing
   
   
Arrow 4. Built-In Functions
  Format 1 - Named Formats
  Format 2 - Custom Numeric Formats
  Format 3 - Custom Date/Time Formats
  Format 4 - Custom String Formats
  Format 5 - Multi-Part Formats
  Format 6 - Nesting the Format Function
  Other Formatting Functions
  String Functions
  String Array Functions (Split, Join, and Filter)
  Date/Time 1 - Parts of a Date
  Date/Time 2 - DateAdd
  Date/Time 3 - DateDiff
  Type Conversion Functions
  Math, Financial, and the Boolean "Is" Functions
  Number Systems Functions
   
   
Arrow 5. Control Structures, Conditionals, & Subs / Functions
  Sequence Structure
  Conditional Expressions
  Selection Structure
  Repetition Structure
  GoTo and GoSub
  Subs and Functions
  The Windows API
   
   
Arrow 6. Files
  Seq. Files 1 - Reading Comma-Delimited Files
  Seq. Files 2 - Reading Fixed-Width "Print" Files
  Seq. Files 3 - Reading Fixed-Width "COBOL-style" Files
  Seq. Files 4 - Writing Text Files with Write # and Print #
  Binary Files
  Random Access Files
  Error Handling
  File System Commands and Functions
  Using the File System Object (FSO)
  Control-Break Concepts
Arrow 7. Arrays
  Arrays - General Array Processing Part 1
  Arrays - General Array Processing Part 2
  Arrays - Searching (Serial and Binary)
  Arrays - Sorting
   
Arrow 8. Control Basics (Command Buttons, TextBoxes, Labels)
  "Add" Program Illustrative Example
  Programming Exercise: Piggy Bank
  Programming Exercise: Shipping Charge Calculation
  Programming Exercise: Car Rental Calc w/ DateDiff Demo
  Programming Exercise: Loan Calculation
  Programming Exercise: Find Largest Number
  Programming Exercise: Years to Become a Millionaire
  Programming Exercise: Palindromes
  Programming Exercise: Date Validation
  Programming Exercise: Count the Threes
  Programming Exercise: Roman Numerals
  Programming Exercise: Number to Words
   
Arrow 9. Forms and More Controls
  Form Methods
  The Timer Control
  Multiple Forms
  Images
  Control Arrays
  Option Buttons
  Checkboxes
  Case Study: Fraction Math
  Programming Exercise: Hangman
  Programming Exercise: Tic-Tac-Toe
  Programming Exercise: Calculator
  Programming Exercise: Cryptogram
  Programming Exercise: Concentration
  List Boxes
  Combo Boxes
  Programming Exercise: Daily Menu Planner
  File System Controls (DriveListBox, DirListBox, FileListBox)
  Scroll Bars
  Drag and Drop
    (Learn D&D with a child's fun word/picture matching game.)
   
Arrow 10. Menus and ActiveX Controls
  Menus
  The Toolbar Control
  The Common Dialog Control
  The StatusBar Control
  Basic Text Editor ("Notepad"-like) Sample App
  The RichTextBox Control (w/Sample "Wordpad"-like App)
  The Masked Edit Control
 
Arrow 11. Working with Databases
  Introduction to SQL
  The DAO Data Control
  Crystal Reports
  Using DAO Code
  Using RDO
  Using ADO
  More ADO (with Intro to ListView Control)
  ADO and Stored Procedures
 
Arrow 12. Extras
  ListView Sample Applications
  TreeView Sample Applications
  SSTab Sample Application
  TabStrip Sample Application
  ProgressBar Sample Applications
  ImageCombo Sample Application
  MonthView Sample Application
  FlexGrid Sample Applications
  Using the WebBrowser to Display MS-Office Documents
  Sample Applications Integrating MS-Word
  Sample Applications Integrating MS-Excel
  Running an MS-Access Report from VB
  Emailing with VB (MAPI and Outlook Examples)
  The TextPlus Custom ActiveX Control
If you find these tutorials useful, consider making a donation of any amount using the PayPal Donate button on the right.

For more programming and design resources, click here
 
Copyright © 2006-2008 The VB Programmer. All Rights Reserved.