Introduction to Visual Basic 6
1.1 The concept of computer programming

Download

Before we begin learning Visual Basic 6 programming, let
us understand some basic concepts of programming. Programming means
designing a set of instructions to ask the computer to carry out certain
jobs that are very much faster and more efficient than human beings can
do.
As the mirochips of a CPU can only understand 0 and 1 in the binary
system, the earliest programming language uses
combinations of 0 and 1 code to communicate with computer, a language
that is called machine language. Machine language is extremely difficult
to learn .
Fortunately , scientists have invented human language-like program
languages or high level programming languges which are much easier to
master.
Some of the high level programming languages are Fortran, Cobol, Java,
C, C++, c#, Visual Basic,Turbo Pascal, flash action script,
JavaScript,HTML and more.
1.2 What is Visual Basic?
VISUAL BASIC is a high level programming language which evolved from the earlier DOS version called BASIC. BASIC means Beginners' All-purpose Symbolic Instruction Code. It is a relatively easy programming language to learn. The code looks a lot like English Language. Different software companies produced different versions of BASIC, such as Microsoft QBASIC, QUICKBASIC, GWBASIC ,IBM BASICA and so on. However, people prefer to use Microsoft Visual Basic today, as it is a well developed programming language and supporting resources are available everywhere. Now, there are many versions of VB exist in the market, the most popular one and still widely used by many VB programmers is none other than Visual Basic 6 . We also have VB.net, Visual Basic 2005, Visual Basic 2008 , Visual Basic 2010, Visual Basic 2012 and Visual Basic 2013 . VB2008, VB2010, VB2012 and VB2013 are fully object oriented programming (OOP) languages.In addition, Visual Basic 6 is Event-driven because we need to write code in order to perform some tasks in response to certain events. The events usually comprises but not limited to the user's inputs. Some of the events are load, click, double click, drag and drop, pressing the keys and more. We will learn more about events in later lessons. Therefore, a VB6 Program is made up of many subprograms, each has its own program code, and each can be executed independently and at the same time each can be linked together in one way or another.
1.3 What programs can you create with Visual Basic 6?
With VB 6, you can create any program depending on your objective.For math teachers, you can create mathematical programs such as Geometric Progression, Quadratic Equation Solver, Simultaneous Equation Solver ,Prime Number, Factors Finder, Quadratic Function Graph Plotter and so on. For science teachers, you can create simulation programs such as Projectile, Simple Harmonic Motion, Star War etc. If you are in business, you can also create business applications such as inventory management system , Amortization Calculator , investments calculator, point-of-sale system, payroll system, accounting program and more to help manage your business and increase productivity. For those of you who like games , you can create those programs such as slot machine, reversi, tic tac toe and more. Besides, you can create multimedia programs such as Smart Audio Player, Multimedia Player and more. Indeed, there is no limit to what program you can create ! We offer many sample codes in our tutorial.1.4 The Visual Basic 6 Integrated Development Environment
Before you can program in VB 6, you need to install Visual Basic 6 compiler in your computer. You can purchase a copy of Microsoft Visual Basic 6.0 Learning Edition or Microsoft Visual Basic Professional 6.0 with Plus Pack from Amazon.com, both are vb6 compilers. If you have already installed Microsoft Office in your PC or laptop, you can also use the built-in Visual Basic Application in Excel to start creating Visual Basic programs without having to spend extra cash to buy the VB6 compiler.After installing vb6 compiler, the icon with appear on your desktop or in your programs menu. Click on the icon to launch the VB6 compiler. On start up, Visual Basic 6.0 will display the following dialog box as shown in Figure 1.1.
Figure 1.1: New Project Dialog

When you start a new Visual Basic 6 Standard EXE project, you will be presented with the Visual Basic 6 Integrated Development Environment (IDE). The Visual Basic 6 Integrated Programming Environment is show in Figure 1.2. It consists of the toolbox, the form, the project explorer and the properties window.
Figure 1.2: VB6 Programming Environment

0 comments :
Post a Comment