icon picker
Class 1: Basics

Explain various components available in VB window, explain each about them.

image.png
Visual basic window
A visual basic window is also called integrated development environment (IDE) window. This window open when we click on standard exe icon from new project dialog box. In visual basic, a program is referred to as a project. Every visual basic project consists of at list two separate files called a project file and a form file. A project file which extension is .VBP and form file which extension is .FRM. Project file created only one but multiple form file and other type of file can also be included in a project. These files are called class module (.CLS) files, standard module (.BAS) files, resource (.RCS) file, ActiveX control (.OCX) file and show on, thus the development of a visual basic project involves keeping track of several different files and accessing these file individually within visual basic environment, as needed.
When we open a visual basic project window which is also called IDE window, its components are displayed in the following format.
Components of visual basic IDE window
Title bar
A title bar is the horizontal bar located the top of the screen. It includes the project name, an icon that closes visual basic at the left and icon that minimize the group window, change the size of the group or close visual basic on right. This component common for all window application.
Menu bar
The menu bar is also common for all document window. It contents command required and build an application. The main menu items have some menu items that can be chosen when needed.
Tool bar
The tool bars gives us quick access to commonly used menu command. Beside the main tool bar, which is displays by default window the menu bar, visual basic IDE provides additional tool bar for specific purpose. The four built in tool bar are standard, edit, debug and from editor. By default, standard tool bar appear immediately below the menu bar.
Project explorer
The docked on the right side of the screen and just below standard tool bar, is the project explorer window. The project explorer window. Serve as a quick reference to the various element of a project namely form, class and module. All the objects that make up the application are packet in a project
The project explorer window holds the file name for the file included in our project. A window’s title bar holds the name our project with .VBP file extension, which is project one by default until we save it with a new name. A simple project typical contents one form, which is window that is designed as part of the program interface. It is possible to develop any number of forms in a program.
Tool box
The tool box contains the icon of the control we can place on a form to create the application’s user interface. By default tool box contains a pointer icon and twenty other icon of ActiveX controls. The tool box appear at the left side on screen by default. User can change its position anywhere on the form. Even tool box can be turn off on screen. To place a control on a form, we first select it with a mouse and then move the mouse over the form. When the mouse is over the form, the curser turns into a large plus sign, and we can draw control on the form, just as we would draw a circle using a drawing application. The size of the circle determines the size of the control.
Properties window
Every object has properties associated with it. The properties window is docked under the project explorer window. The properties window allows us to assign or change properties associated with a particular object. Properties are attributes such as size, position etc. like a form, each control has its own set of properties. Some properties like width, height are common to both form and controls, while other properties are unique to form or control. Control offend differ in the number and type of properties.

Form layout window
The form layout window specifies a form’s position on the screen at run time. The form layout window appear below the properties window. It consist of an image representing the screen and the form’s relative position on the screen. With the mouse pointer positioned over the form image, draw it to the new location. Note that the mouse pointer changes shape when moved over the image representing the form.
Form window
A form window used in visual basic to create project inside the form. A form window appear on screen just like grid of dots inform of matrix. We can increase or decrease size of form window according to our need. By default only one form window will appear on screen but more than one form window can be open on the project window. Out of multiple form windows, one window is called master window and other are called slave windows. By default first window automatically treated as master window. But user can change or select any one window as a master window. Remaining window are automatically changed to slave window.
Project window
Only one project window will appear on screen when be open visual basic window. This project window appear beside the form window. User can not add another project in the current project. By default name of a project is project1 and its file name is project1.vbp but user can change project name as well as project file as needed.
Code window
Normally code window not appear on screen because it is automatically hidden. When we double click any control in the form, a code window will open. Visual basic code window consist of two list boxes. Both list boxes appear at the top of the code window. The left most list box is called object list box and right most list box is called procedure list box.
Object list box allows us to select event procedure associated with a particular object. The procedure list box allows us to select the event procedure associated with a particular type of event such as click, drag drop, key down, mouse down etc.
In case of errors visit here
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.