0% found this document useful (0 votes)
613 views19 pages

Class VIII Computer Science Week 1 PPT-converted 2020

Visual Basic is a graphical and event-driven programming language that is used to create applications through a visual integrated development environment (IDE) that contains various windows and tools like a toolbox, properties window, and code window to design forms, write code, and build visual basic programs. The IDE provides a way to design the user interface, add controls to forms, write programming code, and debug and run the visual basic application being developed.

Uploaded by

B
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
613 views19 pages

Class VIII Computer Science Week 1 PPT-converted 2020

Visual Basic is a graphical and event-driven programming language that is used to create applications through a visual integrated development environment (IDE) that contains various windows and tools like a toolbox, properties window, and code window to design forms, write code, and build visual basic programs. The IDE provides a way to design the user interface, add controls to forms, write programming code, and debug and run the visual basic application being developed.

Uploaded by

B
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

CLASS VIII

COMPUTER SCIENCE
PROGRAMMING IN
VISUAL BASIC
Sample Forms Created Using VISUAL BASIC
Software Used:
VISUAL BASIC 6.0
Chapter 2:
Starting With Visual Basic
Introduction to Visual Basic:
• Visual Basic is a high level programming language evolved from the earlier
DOS version called Basic.

• Visual Basic is a Visual and Events driven programming language.

• In visual Basic programming is done in a graphical environment.

• A Visual Basic program is made up of many sub programs , each has its own
program codes, and each can be executed independently and at the same each be
linked together in one way or another.
Let’s see the differences between Basic and Visual Basic

Basic Visual Basic


It is a fairly easy VB is a visual and events
programming language to driven programming
learn. The code look a bit language.
like English Language.
In Basic programming is It is done in a graphical
done in a text- only environment.
environment and the
program is executed
sequentially.
Startup Dialog Box
As soon as the user starts visual basic the startup dialog box appears as shown in the
figure. This dialog box has three tabs.

New: After selecting New tab and clicking the open


button the user can go into the actual vb programming
environment.
Existing :On clicking of the existing tab
the user is prompted to open an already
existing project.
Recent :The recent tab in the dialog box
shows the list of recently opened projects.
Starting a new project using Standard.exe

On start up , visual basic 6.0 will display the following dialog


box as shown. You can choose to start a new project,
open an existing project or select a list of recently opened
programs.

A project is a collection of files that make up your


application. There are various types of applications we could
create, however , we shall concentrate on creating Standard EXE
Programs(EXE means executable program).

By clicking the standard EXE icon ,we can go into the actual VB
Programming environment.
INTEGRATED DEVELOPMENT ENVIRONMENT(IDE)
The working environment in
Visual Basic is often referred to
as the integrated development
Environment or IDE because it
integrates many different
functions such as design ,
editing, compiling , and
debugging within a common
environment. In most
traditional development tools,
each of these functions would
operate as a separate program,
each with its own interface.
• Title Bar : Title bar is located at the top of the screen it shows the default name for the
‘new’ project as PROJECT 1. Also notice that the title bar indicates that we are design mode.

• Menu Bar : The menu bar is located below the title bar. It displays various menu options
of visual basic.

• Tool Bar : The tool bar consists of most frequently used commands and utilities.

Title Bar

Menu Bar

Tool Bar
• Blank Form : The blank form window which you can design your
application’s interface.
• Project Explorer Window : This
window displays the files that are
created in your application.

The project explorer window gives you


a tree structured view of all the files
inserted into the application. You can
expand these and collapse branches of
the views to get more or less
detail(project explorer).

The project explorer is very useful for


getting an overall view of your project,
and switching between forms and code
modules. To display project explorer
select it from the view/ project
explorer menu or press CTRL+ R.
• Properties window : This window displays the properties of various , controls
objects that are created in your applications.

When you click on different controls the properties window changes slightly , this is due
to different controls having different functions. When you use the command button, you
will find that a new set of properties come up .
• Toolbox : Toolbox consists of all the controls essential for developing
a VB application. Controls are tools such as boxes , buttons, labels and
other objects draw on a form to get input or display output.

• Form Layout Window : This window is used to position the form where it will be
displayed on the screen. Its icon is available on the toolbar or you can select it from the
View / Form Layout Window menu.
• Code Window : The Code Window is a part of visual basic environment where user
can write the code for running an application.

Code Window can be accessed in 3 different ways:


1. The easiest way to access a code window for any particular form or control is to double
click on it.
2. You can right click on form and select View Code.
3. Click View/Code from the menu when the object is selected.

You can write the code between the Private Sub and End Sub line.
So this week we learnt about Visual Basic IDE and its components.
Please make yourself familiar with the IDE , so that we can start doing visual basic
programs from next class.

Stay Safe….

You might also like