Welcome!
Visual Basic Programming Tutorial for Beginners!

Class for:

Today we will start our study of Microsoft Visual Basic projects through a number of sample assignments and described source code to learn how to use the VB language in a commercial environment ...



Visitors from all over the world!

                        

¡Bienvenido! Bienvenue! Willkommen! Howdy, Mate!

First of all, let me say Hello! to my many, many, loyal students particularly in India, Indonesia, the Philippines and Malaysia. Over the years you have proven to be among the best consumers or my VB tutorials and I appreciate it. My statistics tell me that on the other side of the world from here (here being Canada) students and programmers in technical colleges and software training centres are studying my courses and that makes me glad. I'll really try to do as much as I can for you.

Now, I just want to apologize that the tone of most of the references and lessons is so North-American. I would love to give you examples, samples and situations based on your cultural norms but the truth is that I don't know enough about them, yet. For example, I have absolutely no idea how a cricket game is played!

In my defense, picture to yourself, if you can, that as I write this I see outside my window that there is a metre of fresh snow on the ground and the temperature is a windy -12o C. The only subject of discussion by sports fans is yesterday's hockey game (ice hockey, that is).

VB Professor


However, as a French-Canadian I do have a few things in common with you in that I am not an American either and I too have to get by with English as a second language.

If you have suggestions that would make the tutorials more interesting, please do not hesitate to pass them along.




Before you go further, please note that I have many more tutorials
(aka learning apps) that may be of some use to you
in your studies of Information Technology.

Microsoft Project is immensely popular with people at all levels of project management, notably in the High Tech sector:

For a complete list of all our learning apps, visit the Tutorials page, if you haven't already:





About the Visual Basic 6 tutorials

What kind of programming project do you have in mind?

Do you intend to launch a million-dollar business on the Internet?

Maybe just a simple dating service?

Or do you just want to get your hands on that college degree and then head-out into the urban jungle?

I'll tell you a secret - in all those cases, computer programming skills will really help! You don't really have to be a geek to be in computers. But since you're here and reading this, I guess you know that already.




About VISUAL BASIC 6

Visual Basic 6 is not your grandfather's BASIC! If your knowledge of programming is limited to the QBASIC you toyed with in high school, you'll think you've landed on a different planet. You may still see the occasional GoTo hanging around but, for the most part you will be in unfamiliar territory. For one thing, the word Basic in Visual Basic is not an acronym anymore. It used to be. When the language was invented in the early 70's, BASIC stood for Beginners' All-purpose Symbolic Instruction Code, thus the acronym (word formed from the first letter of several words, in upper-case). It is certainly not just for beginners, and although it is quite versatile, I don't know if I'd call it exactly All-purpose. And while it is still Instruction Code, it is more than Symbolic now. But THE big difference is the Visual aspect of it where you work with windows and icons and pictures and multimedia.
It really is a lot of fun!

Before you start developing a Visual Basic 6 application you should be aware that some programming knowledge is useful. If you have used BASIC or Pascal or C before you got here, that's OK. If you did learn one of those languages, you were working in a procedural fashion: when you type RUN the program starts at the beginning and basically follows the instructions going down the list, skipping here and there according to control instructions until it finds some kind of END statement. That is not how Visual Basic operates. Rather than procedural it is event-driven. There will be more on that subject in the next lesson.

However, you do have to write Visual basic 6 code to program the events - there are loops and conditions and arrays. We will not be covering the fundamentals of programming as such - you should be familiar with the basic constructs such as the IF...THEN...ELSE or the FOR...NEXT statements.


If you need a good book to follow along with the tutorials, the Profsr recommends the author
Evangelos Petroutsos.
His books, on all versions of VB, are among the best.

Get it easily from Amazon.com





Here's your lead to a great new Visual Basic training site!
If you need more information and examples of VB 6 in action, you might want to visit this site for
Free VB 6 tutorials and sample source code samples.










Visual Basic 6.0 Tutorial Content

Lesson 1

  • The Visual Basic 6 environment
  • Defining terms
  • Creating a Visual Basic Project
  • Practice project - Building a Football Scoreboard

Lesson 1b

  • Improving the VB application
  • Using a step-by-step approach
  • Writing a VB procedure
  • Calling procedures

Lesson 2

  • Using the Visual Basic 6 code editor
  • Adhering to programming standards
  • Data types, variables and constants in Visual Basic
  • Using operators
  • Control structures - IF...THEN, Select Case, DO...LOOP, FOR...NEXT
  • Practice assignment - Upgrading the Scoreboard

Lesson 3

  • Designing the Visual Basic Application
  • Working with users
  • Guiding principles
  • Choosing a Visual Basic interface style

Lesson 4

  • Defining the Visual Basic Form
  • Standard controls: Picture, Frame, CommandButton, Label, TextBox, CheckBox, etc.
  • Visual Basic practice assignment: Creating a Payroll Form

Lesson 5

  • Arrays
  • More controls: ListBox, ComboBox
  • Properties and Methods of objects in Visual Basic
  • Building a file search application: DriveListBox, DirListBox, FileListBox

Lesson 6

  • Building a Menu
  • Debugging Visual Basic code
  • Error trapping

Lesson 7

  • Manipulating text - string functions
  • Visual Basic functions for dates, numbers
  • Using the Windows Clipboard and Screen objects
  • Creating Copy, Paste, Cut, Delete functions
  • Pictures, Graphics and Drawing controls in Visual Basic
  • Multimedia - incorporating sounds and pictures
  • Building a CD player in code

Lesson 8

  • Working with Visual Basic files
  • Writing and reading a Sequential-access file
  • Sample project: the Address Book
  • Creating a sequential output form
  • Creating and using a Random-access file

Lesson 9

  • Creating a Microsoft Access database - refer to SQL tutorial
  • The Project Management example
  • The Data control
  • Visual Basic Bound controls - TextBox controls linked to database
  • Validating data - ensuring database integrity
  • Finding a specific record in the database

Lesson 10

  • Using multiple tables from the database
  • Creating multiple data controls
  • Using Data Bound List Controls
  • Using VISDATA - the Visual Basic Data Manager

Lesson 11

  • Downloads - sample Visual Basic 6 code and database
         with new examples

Lesson 12

  • New sample application: Project management
    Visual Basic 6 ADO database programming
    with connection to MySQL database server.


Use Google to search our website
for all kinds of free lessons,
up-to-date tutorials
and training resources.

Custom Search



Top