1/5/2010
Visual Basic 6 Projects tutorial tutorial with sour…
Tutorials
Next
Welcome! Visual Basic 6.0 6.0 programming for beginne rs! Class Class fo r: T uesda y, Ja nuary 05, 2010 Today Today we wil will star start ou ourr study study of Microso crosoft ft Visu Visual al Basi asic proj projects ects through a number of sample assignments and described source code to master the fine points of using the VB language in a commercial environment ...
Visitors Visitors from all ov over er the w or orld! ld!
¡Bienvenido! Bienvenue! Willkommen! Howdy, Mate! First of all, let me say Hello! to my many, many, loyal students particularly in India, the Philippines and Malaysia. Over the years you have proven to be among the best consumers or my VB tutorials and http://www.profsr.com/vb/vbintro.htm… http://www.profsr.com/vb/vbintro.htm …
1/11
1/5/2010
Visual Basic 6 Projects tutorial tutorial with sour…
I appreciate it. My statistics tell me that on t he other 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 NorthAmeri erican. can. I would love to give you examples, samples and situations based on your cultural norms but the truth is that that I don't know enough about them, yet. For example, I have absolutely no idea how a cricket game is http://www.profsr.com/vb/vbintro.htm… http://www.profsr.com/vb/vbintro.htm …
2/11
1/5/2010
Visual Basic 6 Projects tutorial tutorial with sour…
played! In my defense, picture to yourself, if you can, t hat 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 win 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 with you in t hat I am not not an Amer Ameriican either either and I t oo have have to get get by with English as a second language. If you have suggest io ions t ha hat would make t he he t ut ut or orials more interest interestin ing, g, please do not hesitat hesitat e to pass t hem along. along.
About the Vi sual Basic Basic 6 tutorial What kind of programming project do you have in mind? Do you intend to launch a million-dollar business on the Internet Internet? ? Maybe just a simple dating service? http://www.profsr.com/vb/vbintro.htm… http://www.profsr.com/vb/vbintro.htm …
3/11
1/5/2010
Visual Basic 6 Projects tutorial tutorial with sour…
Or do you just want t o get your hands on that college degree and then head-out into the urban jungle? I'll t ell you a sec ret - in all t hose cases, computer programming skills will really help! You don't really have t o be a geek t o be in computers.. But since you're here and reading computers this, I guess you know that already. Whether you're a beginner beginner at at the programming game game or a programmer who as some experience with other languages, you'll find that Visual Basic 6 is just about the best way to start getting the right training with the object object s approach to programming.
Want to try the grea t Linux OS without risk? There's a small distribution that will run from within Windows - you can explore as much as you want. Visit Linux4Windows for the free free tutorials, downloads and articles.
http://www.profsr.com/vb/vbintro.htm… http://www.profsr.com/vb/vbintro.htm …
Microsoft boasts that there are 3.2 million users of Visual Basic 6 in the world. Sometimes it seems that at least half of them have wri writt en a book, a magazine or a tutorial on the subject. subject. The amount of information available is overwhelming. The problem is that everything 4/11
1/5/2010
Visual Basic 6 Projects tutorial tutorial with sour…
you need to know is there, somewhere, but when you're just a beginner beginner you y ou can't even know where to begin begin to look. So, why another tutorial?
Well, t his Visual Basic Basic t utorial uto rial is is different. diffe rent. For one thing it's meant for the real begi beginn nner er - the on one e who who doesn doesn''t know his his Form Form from from a hole in the ground. It covers all the basics to get you programming a real application and sets you on t he road to bigger bigger and bett er things. And it has lots of easy to follow examples, sample projects and Visual Basic 6 source code that you can evaluate and adapt to your own needs. Also, it's organized like a textbook, not a reference manual. You do not have to know what you're looking for in order to find it. If you follow the lessons, in order, you go through all the fundamentals required to start producing real code.
For gam e programmers ... If you' y ou're re into games games development development,, in Visual Basic, C# or any other language, here's a new site that's very promising. The site is not fully developed yet but it will soon have a lot of resources f or t he game game programm prog rammers ers comm c ommunit unity. y. Check Check it out at : Game developers' Web. Web .
Top To p
About VI SUAL BASIC BASIC 6 Visual Basic Basic 6 is not your grandfat grandfat her's her's BASIC! BASIC! If your y our 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 t he word Basic in Visual Visual Basic Basic is not an ac ronym anymore. anymore. It used t o be. When t he languag language e was invented invented in t he early early 70's, BASIC stood for B eginners' A ll-purpose Symbolic I nstruction C ode, thus the acronym (word formed formed from the first first letter of several words, in upper-case). It is certainly not just http://www.profsr.com/vb/vbintro.htm… http://www.profsr.com/vb/vbintro.htm …
5/11
1/5/2010
Visual Basic 6 Projects tutorial tutorial with sour…
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 more than t han Symboli Symbolic c now. But T HE big big differenc e is the Visual aspect aspec t of it where you work work with windows 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 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 t ype 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 f inds s ome kind of END statement. 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 write Visual basic 6 code to program http://www.profsr.com/vb/vbintro.htm… http://www.profsr.com/vb/vbintro.htm …
There's money to be made with this! If you're developing VB applications, there may be a big market for them. them. T here are all kinds of ways to sell your knowledge on the Internet. Why don't you take a look at our free Internet marketing course.. course Even if it's just just f or a hobby, you'll be amazed 6/11
1/5/2010
Visual Basic 6 Projects tutorial tutorial with sour…
t he event s there are loops and conditions and arrays. We will not be covering the fundamentals of programming as suc h yo u should be familiar with the basic basic c onstru onstruct ct s such as the IF...THEN...ELSE or the FOR...NEXT statements.
didn't know you could do!
Top To p
About V isual Basic versions ver sions You may may be aware t hat t here here are several dial dialec ec ts of t he Visual Visual Basic language in use. This tutorial is on standard Visual Basic. It uses the VB IDE (Integrated (Integrated Deve lopment Environment) to let you create standalone Visual Basic applications that can be distributed as .EXE files. Visual Bas ic for Applications Applications (VBA) is the language language used to t ie Mic Mic rosoft Office product products s togethe to gether. r. It links links Word and Exce l applica applicatt ions, for example. example. Although it is very similar to standard VB, it does have several partic partic ular ular tec t ec hniqu hniques es that must be learned learned on their own. VBScript is a small subset of Visual Basic, with limited instructions, mostly used in Internet applications. As for f or version, version, t his his tutorial is is based upon Visual Basic 6.0. 6.0. You may have access to version 4 or 5 in your environment. Don't worry about it. Of course Mr. Gates would like us to rush out to the st ore and and buy the latest release as soon as it hits the shelves shelves but we ar a re not all as, shall we we say, fortunate, as Mr. Gates when it comes to spending money. Right now, when a new version is announced, most of the improvements cover Internet Internet acc ac c ess or Class libr librari aries, es, e tc . At t his his level of trainin training, g, we will not be using most of those facilities and so, one version is just just about as good as another. A form is a form f orm and a butt butt on is a button. There may be slight differences in the interface between versions but those will not matter much. The only only probl problem ems s occ ur when you try to run run an applicat application ion on a lower version of the software. It normally doesn't work. But the hardest part of creating an application is usually in writing the c ode. Some Some sc ripts ripts c an run run into into the 100' 100's s of line. line. Fortunately the s cript is just just text a nd you can w ork ork around around the version version problem problem with Cut and Paste Past e operat operation ions. s. You will will have to http://www.profsr.com/vb/vbintro.htm… http://www.profsr.com/vb/vbintro.htm …
7/11
1/5/2010
Visual Basic 6 Projects tutorial tutorial with sour…
redraw the forms, buttons and so on but, that is a minor inconvenience when you can paste in the code for all those objects. In order order to be as ac c essible essible as possibl possible, e, t he code downloads downloads at the end of the t utorial utorial will will all be in the form of t ext files that can ca n be paste d into into any version version of VB. Visua l Basic .NET is now available. Although very similar in most ways to Visual Basic 6, Visual Basic .NET does have significant differences in its approach. For one thing, VB .NET is now com c ompl plete etely ly object object -oriente -oriented, d, which isn't isn't the cas case e with Visual Basic 6. An application that runs well in VB 6 will have to be converted, using a conversion wizard to run on VB .NET. .NET. Microsoft tell us that the conversion wizard will convert 95% of the code (an optimistic optimistic estimate estimate?). ?). Regard Regardless, less, that t hat leaves at least 5% that will have to be converted manually. That means that a lot of people will wait to see further improvements before jum jumpi ping ng to the new version version.. And And add t o t hat the fac t that Visual Studio .NET, t he parent framework framework for VB has has a huge infrastructure. It requires lots of system resources. For example, you need at least 128 meg meg of RAM. Exc Exc use me! When I look at the real world world I see t housands housands upon upon thou t housands sands of perfec perfec tly good computers with less than 128 meg of memory. Before too long we'll be doing a tutorial on "Converting Visual Basic 6 to Visual Basic .NET" and eventually we will convert this tutorial to VB .NET also. Here's yo ur llead ead to a grea t new Visual Bas ic training training site! If you y ou need more more information information and a nd examples examples of VB 6 in ac tion, you might want to visit this site for Free VB 6 tutorials tutorials and sample source code sa mples mples..
However, if you are just gett ing into program programm ming or into VB VB,, the basic basic stuff doesn' doesn'tt c hang hange. e. Y ou still still need to know how t o c reate a for form, how to put con contro trols on a for form, how to write a loop or a decisi decision on stru struct ure. ure. That That hasn' asn't change changed d in ages ages and and that you can still learn with Visual Basic 6. I see installations out in the real world still doing tons of interesting work with versions 4 or 5 of Visual Basic!
All about food a nd wine ... If you're now ready to take a break, visit this great website devoted to wine and food. From a Web developer's viewpoint, one of the interesting interesting aspects aspec ts of the t he site site is that it is developed developed entirely using PHP programming. For all kinds of useful info: The Ultimate fine wine a nd food pairing guide .
Top To p http://www.profsr.com/vb/vbintro.htm… http://www.profsr.com/vb/vbintro.htm …
8/11
1/5/2010
Visual Basic 6 Projects tutorial tutorial with sour…
Visual Visual Basic Basic 6.0 T utorial Content Lesson 1 The Visual Basic 6 environment Defining t erms erms 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 Guiding principles princ iples Choosing a Visual Basic interface style Lesson 4 Defining the Visual Basic Form Standard controls: Picture, Frame, CommandButton, Label, TextBox, CheckBox CheckBox,, etc e tc . 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 http://www.profsr.com/vb/vbintro.htm… http://www.profsr.com/vb/vbintro.htm …
9/11
1/5/2010
Visual Basic 6 Projects tutorial tutorial with sour…
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 Building a CD player play er in c ode 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 Creatin Creating g a Mic Mic rosoft Acc ess database - refer to SQL tutorial 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 examples Lesson 12
New sample application: Project management Visual Basic 6 ADO database programming with c onnection onnection to MySQL MySQL database server server..
http://www.profsr.com/vb/vbintro.htm… http://www.profsr.com/vb/vbintro.htm …
10/11
1/5/2010
Visual Basic 6 Projects tutorial tutorial with sour…
If you haven't found found the the Visual Basic Bas ic resour res ource ce you're you're looking for, use our Google Google Search Se arch box box for more more inform information.
Search
Top
Home | Tutorials | Contact | Sitemap | Add URL | Privacy policy
http://www.profsr.com/vb/vbintro.htm… http://www.profsr.com/vb/vbintro.htm …
11/11