Visual Basic Programming Tutorial for Beginners!
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).
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.
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
His books, on all versions of VB, are among the best.
Get it easily from Amazon.com
Visual Basic 6.0 Tutorial Content
- The Visual Basic 6 environment
- Defining terms
- Creating a Visual Basic Project
- Practice project - Building a Football Scoreboard
- Improving the VB application
- Using a step-by-step approach
- Writing a VB procedure
- Calling procedures
- 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
- Designing the Visual Basic Application
- Working with users
- Guiding principles
- Choosing a Visual Basic interface style
- Defining the Visual Basic Form
- Standard controls: Picture, Frame, CommandButton, Label, TextBox, CheckBox, etc.
- Visual Basic practice assignment: Creating a Payroll Form
- More controls: ListBox, ComboBox
- Properties and Methods of objects in Visual Basic
- Building a file search application: DriveListBox, DirListBox, FileListBox
- Building a Menu
- Debugging Visual Basic code
- Error trapping
- 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
- 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
- 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
- Using multiple tables from the database
- Creating multiple data controls
- Using Data Bound List Controls
- Using VISDATA - the Visual Basic Data Manager
- Downloads - sample Visual Basic 6 code and database
with new examples
- 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,
and training resources.