VB Is Event Driven Programming Language
VB Is Event Driven Programming Language
When you click, press a key, move the mouse or fire other
events, the particular block of code of the corresponding
event procedure is executed, and then the program behaves
in a certain way. This is called event-driven programming.
Menu Bar
Tool Bar
Project Explorer
Properties window
Form Layout Window
Toolbox
Form Designer
Object Browser
Toolbox
The Toolbox contains a set of controls that are used to place on a Form at
design time thereby creating the user interface area. Additional controls can be
included in the toolbox by using the Components menu item on the Project
menu. A Toolbox is represented in figure 2 shown below.
Project Explorer
Docked on the right side of the screen, just under the tollbar, is the Project Explorer
window. The Project Explorer as shown in in figure servres as a quick reference to
the various elements of a project namely form, classes and modules. All of the object
that make up the application are packed in a project. A simple project will typically
contain one form, which is a window that is designed as part of a program's interface.
It is possible to develop any number of forms for use in a program, although a
program may consist of a single form. In addition to forms, the Project Explorer
window also lists code modules and classes.
Context Menus
Contain shortcuts to frequently performed actions. To open a context menu, click the
right mouse button on the object you're using. The specific list of shortcuts available
from context menus depends on the part of the environment where you click the right
mouse button. For example, the context menu displayed when you right click on the
Toolbox lets you display the Components dialog box, hide the Toolbox, dock or
undock the Toolbox, or add a custom tab to the Toolbox.
Toolbars
Toolbars can be docked beneath the menu bar or can "float" if you select the vertical
bar on the left edge and drag it away from the menu bar.
Form Designer
Serves as a window that you customize to design the interface of your application.
You add controls, graphics, and pictures to a form to create the look you want. Each
form in your application has its own form designer window.
Code Editor Window
Serves as an editor for entering application code. A separate code editor window is
created for each form or code module in your application. Code window contains two
dropdown list boxes, One for the list of objects in the form and another for available
events of the selected object.
The Form Layout window allows you to position the forms in your application using a
small graphical representation of the screen.
Immediate, Locals, and Watch Windows
These additional windows are provided for use in debugging your application. They
are only available when you are running your application within the IDE.
Project Explorer
Docked on the right side of the screen, just under the tollbar, is the Project
Explorer window. The Project Explorer as shown in in figure servres as a quick
reference to the various elements of a project namely form, classes and modules.
All of the object that make up the application are packed in a project. A simple
project will typically contain one form, which is a window that is designed as
part of a program's interface. It is possible to develop any number of forms for
use in a program, although a program may consist of a single form. In addition
to forms, the Project Explorer window also lists code modules and classes.
Properties Window
The Properties Window is docked under the Project Explorer window. The
Properties Window exposes the various characteristics of selected objects. Each
and every form in an application is considered an object. Now, each object in
Visual Basic has characteristics such as color and size. Other characteristics
affect not just the appearance of the object but the way it behaves too. All these
characteristics of an object are called its properties. Thus, a form has properties
and any controls placed on it will have propeties too. All of these properties are
displayed in the Properties Window.
Context Menus
Contain shortcuts to frequently performed actions. To open a context menu, click the
right mouse button on the object you're using. The specific list of shortcuts available
from context menus depends on the part of the environment where you click the right
mouse button. For example, the context menu displayed when you right click on the
Toolbox lets you display the Components dialog box, hide the Toolbox, dock or undock
the Toolbox, or add a custom tab to the Toolbox.