Professional Documents
Culture Documents
-> Enterprise Edition – Includes features of Professional Edition plus features like
Remote OLE automation, Component Manager and Remote database access tools. It
is used to build distributed applications.
Features of Visual Basic:-
1. Different options for optimizing compiled code.
3. New feature ‘IntelliSense’ enables the system to interact with the user while coding.
The IntelliSense features are Quick Info, Complete Word, Data Tips, List Members &
List Constants.
4. Multiple projects can be involved in the IDE at once, saving time for coding & debugging.
10. Hierarchical Flex Grid, Data Grid Control – Both grids can display a hierarchy of ADO record
sets. Each record set is displayed as a separate row within the grid & can be formatted.
11. ADO – It is a data source control that allow to create a database application with minimum
code.
12. Data List, Data Combo Controls – These controls list the data attached to them via ADODC,
in the form of a ListBox or a ComboBox.
13. Data Time Picker Control – It allows to pick date and time.
14. Data Report – It is used to create reports from any record set.
15. IIS Applications – It allows the user to write server-side Internet applications which use
VB 6.0
Advantages of Visual Basic:-
-> GUI Interface – VB supports Graphical User Interface.
-> Modularization – It consists of small modules where it is clearly indicated what comes into
the module & what goes out, making a program easy to understand.
-> Object Oriented – Programmer thinks of the program as “objects” that interact with each
other.
-> Debugging – VB offers two options for code debugging. One at design & the other at
run-time.
-> Data Access Feature – Databases scalable server-side components for most databases can
be created.
Disadvantages of Visual Basic:-
-> Visual Basic does not fully support Object-Oriented programming concepts.
2. ActiveX EXE, ActiveX DLL – Building components which do not have a visible interface.
ActiveX EXE is packed as executable file and ActiveX DLL as Dynamic Link Library
5. Data Project – It is one of the features of Enterprise edition and is a standard EXE project
type. It automatically adds controls used for accessing databases to Toolbox. It also includes
Data Report & Data Environment to generate reports & manipulate databases.
Types of Project
6. IIS Applications, DHTML Application – These are used to create Internet Applications for
both server-side & client-side.
7. Addins – Special type of commands that can be added to VB menus, via Add-Ins menu.
8. The Integrated Development Environment (IDE) – VB is an IDE used to develop, run, test
debug application.
9. A Standard EXE Project – Select the Standard EXE icon, highlighted by default & click on ope
button. This opens IDE for Standard EXE projects.
11. Menu Bar – It consists of commands required for developing, maintaining & executing
programs with VB.
12. Tool Bar – It provides short cut icons to commonly used menu commands.
Menu Bar
File Icons Run Icons View Icons
Tool Bar
Project Icons Edit Icons
13. Project Window – The Window displaying Project – Project 1 is Project Explorer which
lists the project files.
14. Form Designer Window – It allows the user to add controls, graphics & pictures to a form
as need. Every form in an application has its own form designer
15. Tool Box – It consists of prepackaged component controls which can be placed on the
forms to customize them & create great interface.
Properties Window
16. Form Layout Window – It specifies the position of the form on the screen during runtime.
Immediate Window
Creating an Application:-
1. Open a standard EXE project to create UI to display the text “Welcome to Visual Basic 6.0”.
2. Create GUI with three labels, three text boxes & two command buttons.
3. Set the properties of the labels, text boxes & command buttons as shown below. Rename
Text1 as txt1, Text2 as txt2, Text3 as txtSum, command1 as cmdAdd & command2 as
cmdExit.
4. Double click on Add button & write the code as shown below. Similarly, do the same for
the Exit button.
5. Save the project and Run the program by clicking start button.
6. If there are multiple forms in a single project, change the startup object. Click on Project.
Go to Project properties. The Project Properties dialog box opens as shown below.
End of Chapter one