What is Visual Basic?
•Visual basic is an event driven programming language.
•Visual basic is used to create applications fast, as well as, very easily.
•Visual basic provides us with a complete set of tools to simplify rapid application
development (rad).
Write the naming reason of Visual Basic.
• The word "visual" refers to create the graphical user interface (gui), rather than
writing numerous lines of code to describe the appearance and location of the interface
elements. we simply drag and drop the pre-built objects into place on the screen.
• The word "basic" comes from the original "basic" language. it is now contains
several hundred statements, functions and commands.
Event and Event Procedures
Define Events.
•Clicking a mouse on various controls or,
•Pressing a key or key combination is known as Events.
Differentiate Procedural and Event driven programming language.
What is Event -driven programming language?
• The application developer decides how the application must react to the each of the user's action. This is known
as Event -driven programming language.
Define Procedural languages
• In procedural language, the user should know the sequence of operations to be performed by the computer and he
should write in order. For Example BASIC, C, COBOL, etc.
Object related concepts
List out the features of Visual Basic
Data Access Features.
•This feature allows you to create databases and front-end applications.
Active X Technologies.
•This feature allows you to use the functionality provided by other applications, such as Microsoft Word, Microsoft Excel and
other Windows applications.
Internet Capabilities:
•This feature makes it easy to provide access documents and applications across the internet from with in yourapplication.
(Active X Documents)
.exe File
•Your finished application is uses a run time dynamic-link library (DLL) that you can freely distribute. (Application Setup
Wizard)
VB program
Development Process
Visual Basic is available in 3 Editions.
Learning Edition
Professional
Edition
Enterprise Edition
1. Learning Edition.
This Edition allows the programmers to easily create powerful applications for
Windows'95 and Windows 'NT. This edition includes all controls like grid, tab and data
bound controls.
2. Professional Edition
This edition provides computer professional with a full-featured set of tools for developing
solutions for others. It includes all the features of Learning Edition plus Additional Active
X controls, including Internet Control and Crystal report write.
3. Enterprise Edition
This edition professional to create robust distributed applications in a team setting. it
includes all the features of professional edition, plus (i) the automation manager (ii)
component manger (iii) database management tools, (iv) the msvisual source safe ™ (v)
project -oriented version control system
Write about Visual Basic Philosophy
•Windows became popular because of its GUI (Graphical User Interface). VB helps create applications that
will have the same GUI as windows. This makes it very easy for users to learn how to use the software.
•The windows GUI is an event driven. you have seen that unless the user initiates an action nothing happens.
you have to click a button for something to happen
Write short notes on Controls
•Controls and Objects are the same in Visual Basic. A special routine that performs a specific
task is called control. Some controls in VB
•Text Box, Label, Command Button, Picture Box, Frame, Option Button and Checkbox etc.
•Text Box Control → Used to get the input from the user and also display
the result.
•Label Control → It is used for the identification purpose.
•Line Control → To draw a line
•Picture Box Control → To display the picture.
WriteshortnotesonProperties
Everycontrols(orobject)arehavingmoreattributes.ThePropertiesWindowisusedto
changethepropertiesofthecurrentlyselectedobject(or)control.Forexample:Someofthetext
boxpropertiesare
1.Name 2.Backcolor3.Forecolor4.Multiline 5.Text
WriteshortnotesonMethods.
Theactiontakenwhentheentireeventoccursisthemethod.Methodsprovide
functionalitytoanobject.Methodsaretheactionsortasksthatcanbeperformedonorbyan
object.
“AMethodisapieceofcodethataccomplishesatask”.InanEvent-drivenprogramming
thereare“Control”,whichhave“Properties”,whenaneventoccurstothe”Controls”.Some
“Methods”areinvoked.
Example:
We want to exit the program, when the user clicks on the Command Button. The
Click_Eventprocedure of the command button contains the “End” method. This method is used to
exit the program