0% found this document useful (0 votes)
162 views27 pages

Visual Basic: Overview and Development

Visual Basic is an object-oriented programming language and integrated development environment developed and owned by Microsoft. It was originally created to make programming for Windows easy and to take advantage of the graphical user interface. Visual Basic allows programmers to draw user interfaces on the screen and connect them to code. It is an event-driven and object-oriented language that emphasizes the development of graphical user interfaces. The Visual Basic environment includes forms for building applications, a toolbox of common controls, and a properties window to set control attributes.

Uploaded by

bhumika_shah7
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
162 views27 pages

Visual Basic: Overview and Development

Visual Basic is an object-oriented programming language and integrated development environment developed and owned by Microsoft. It was originally created to make programming for Windows easy and to take advantage of the graphical user interface. Visual Basic allows programmers to draw user interfaces on the screen and connect them to code. It is an event-driven and object-oriented language that emphasizes the development of graphical user interfaces. The Visual Basic environment includes forms for building applications, a toolbox of common controls, and a properties window to set control attributes.

Uploaded by

bhumika_shah7
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd

Visual Basics……

Ms. Bhumika Shah

1
 What is Visual Basic?
 It's a computer programming system developed and owned by
Microsoft.
 Visual Basic was originally created to make it easier to write
programs for the Windows computer operating system.
 The basis of Visual Basic is an earlier programming language called
BASIC that was invented by Dartmouth College professors John
Kemeny and Thomas Kurtz.
 Visual Basic is often referred to using just the initials, VB.
 Visual Basic is easily the most widely used computer programming
system in the history of software.

2
Is Visual Basic just a programming language
or is it more than that?

 It's more.
 Visual Basic was one of the first systems that made it practical to
write programs for the Windows operating system.
 This was possible because VB included software tools to
automatically create the detailed programming required by
Windows.
 These software tools not only create Windows programs, they also
take full advantage of the graphical way that Windows works by
letting programmers "draw" their systems with a mouse on the
computer.
 This is why it's called "Visual" Basic.

3
Visual Basics as…

 Object-Oriented & Event-Driven ::

 Windows works in event driven environment,


means user is in control, and programs need to
create and respond to events …

 Visual Basic definitively is not a true OOP


language and it won’t be one until it possesses
some essential OOP features, such as
inheritance.
4
What is Computer
Programming?

 It is a sequence of “instructions” that can


be expressed in a computer language
(e.g., Visual Basic) that causes the
computer to perform one or more tasks.

5
What is Visual Basic?

 Event Driven Programming Language


 Responds to user actions
 Interpretative
 Programs run as you write them
 Object Oriented (somewhat)
 Objects know how to react
 Emphasis on the Graphical User-Interface
(GUI)
6
Graphic User Interface

 Graphic User Interface (GUI) comprises


 Forms
 Controls
 Event-driven programming

7
Writing Windows Apps.
with VB

 The Windows GUI


Labels Text boxes

Frame
Check boxes
Option buttons
Command buttons

Image

Picture box
8
Object-Oriented & Event-
Driven Concepts
 Object-Oriented Programming (OOP)
 Objects (nouns) controls
 Properties (adjectives) [Link]
 Methods (verbs) [Link]
 Event-Driven Programming
 User can press keys and click on various
buttons and boxes in a window.

9
Versions of Visual Basic

 Learning Edition
 Professional Edition
 Enterprise Edition

10
Writing Programming
Projects

 Programming is a process

11
The Phases of the Process
 Analysis

 Design

 Implementation

 Maintenance

12
Maintenance Phase

Production

Test

Code
Implementation Phase
Design
logic

Design Phase
User
Interface

Analysis
Analysis 13
Visual Basic:
Programming
Process

Similar to general
programming
process but
different focus

14
 Analysis
 What is the problem
 Design
 Design the User Interface
 Plan the Properties
 Plan the code (pseudo-code)
 Implementation
 Create user interface
 Set properties
 Write and test code
 Maintenance
15
Visual Basic Projects
 Visual Basic projects create several files
 Project file: .VBP
Holds the names of other files in the project
 Form files: .FRM
Each form is saved as a separate file
Form file contains a description of a form's objects and
the Basic code attached to a form
 Standard code module: .BAS (optional)
 Custom controls: .OCX (optional)
 If you include controls that are not part of the
standard control set.
 Form information: .VBW
16
The Visual Basic
Environment

 Form
 Project Explorer
 Properties
 Form Layout Windows
 Toolbox
 Toolbar
 Position of form screen
17
18
Forms Window ::

This is where you design your form.


A form is what you will present to a user of
your application.
 A form could be an introduction screen, it
could be a dialog box giving the user options, it
could be a box containing a warning.
All of your VB programs will revolve around
a number of forms.

19
20
The Toolbar ::
The toolbar provides quick access to commonly used
commands.

The Toolbox ::
This floating window provides the tools for
designing/creating an application on your form.

They can create buttons, text boxes, labels, scroll bars


and other commonly used windows items.

21
22
Project window

TOOLBAR

Property
Window

TOOL
BOX

23
The Property Window

All items placed on a form have properties


such as the color of a button, what type of border
a text box has or what font a label is displayed in.

24
The Project Window

A project is a complete application;


This includes all the forms, programming code
and other files needed to run this application.

25
26
uestions?

27

You might also like