
Microsoft Visual Basic is a third-generation language event-based programming and integrated development environment (IDE) from Microsoft for its COM programming model first launched in 1991. Microsoft intends to Visual Basic to be relatively easy to learn and use. Visual Basic was derived from BASIC and enables the rapid application development (RAD) of graphical user interface (GUI) applications, access to databases using Data Access Objects, Remote Data Objects, or ActiveX Data Objects and the creation of ActiveX controls and objects.
A developer can create an application
using the components provided by the Visual Basic itself. Programs
written in Visual Basic can also use the Windows API, but doing so
requires external function declarations. Although the program has been
criticized for its perceived failures, the Visual Basic version 3 was a
commercial success and many companies offer third-party controls that
greatly extends functionality.
Like the BASIC programming language,
Visual Basic was designed to accommodate beginning programmers.
Programmers can create not only simple, but also for the development of
GUI applications complex applications. Programming in VB is a
combination of visually arrangements components or controls on a form,
specifying attributes and actions of those components, and writing
additional lines of code for more functionality. Since VB defines the
attributes and actions for the default components, a programmer can
develop a simple program without having to write much code. Programs
created with earlier versions suffered performance issues, but the
quickest and native code compilation of computers has made this a minor
problem.
Although VB programs can be compiled
into native code executables from version 5 onwards, they still require
the presence of about 1 MB of runtime libraries. Runtime libraries are
included by default in Windows 2000 and later. Earlier versions of
Windows (95/98/NT), require that the runtime libraries are distributed
with the executable.
Forms are created using drag and drop. A
tool is used to place controls (e.g. text boxes, buttons, etc.) on the
form (window). Controls have attributes and event handlers associated
with them. Default values are provided when the control is created,
but may be modified by the programmer. Many attribute values can be
modified at run time based on user actions or changes in the
environment, providing a dynamic application. For example, code can be
inserted into the form event handler resize to reposition a control so
that it remains centered on the form, expands to fill up the form, etc.
By inserting code into the event handler keypress in a text box, the
program can automatically translate the case of the text being entered,
or even prevent certain characters are inserted.
Visual Basic may create executables (EXE
files), ActiveX controls, or DLL files, but is primarily used to
develop Windows applications and to interface systems databases. Dialog
boxes with less functionality can be used to provide pop-up
capabilities. Controls provide the basic functionality of the
application, while programmers can insert additional logic within the
appropriate event handlers.
For example, a drop-down combination box
lists automatically. When the user selects an item, an event handler is
called running code that the developer has created to perform action
for that item from the list.
- License: Free
- OS: Windows
- Size: 0.99 MB.
- Publisher/Developer: Microsoft.

About the Author
0 comments: