0% found this document useful (0 votes)
100 views28 pages

CHAPTER 1 - Introduction To Visual Basic Programming

visual basic

Uploaded by

Alfaking
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
100 views28 pages

CHAPTER 1 - Introduction To Visual Basic Programming

visual basic

Uploaded by

Alfaking
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 28

CHAPTER 1

INTRODUCTION TO VISUAL BASIC PROGRAMMING


1.1 REMEMBER THE VISUAL BASIC EDITIONS, REQUIREMENTS AND
INTEGRATED DEVELOPMENT ENVIRONMENT

1.1.1 Identify The Editions Of Visual Basic Programming

Visual basic 2015 is the version of visual basic introduced by


microsoft in 2015.
Microsoft has added many new features particularly those features
for building mobile applications.Visual basic 2015 is a full-fledged
object-oriented programming(oop) language implemented in the
.NET framework.
Visual basic 2015 is bundled together with other microsoft
programming languagesc++, F#, javascript, python and more in an
IDE called visual studio community 2015.
1.1.2 Identify Visual Basic
system requirements
• 1.1.2 Identify Visual Basic
• system requirements
• 1.1.2 Identify Visual Basic
• system requirements
• 1.1.3 Describe the Visual Basic Integrated
Development Environment (IDE)

Visual Basic 2015 is an object-oriented programming


language, which is a language that allows the programmer
to use objects to accomplish a program’s goal.

An object is anything that can be seen, touched, or used.

An integrated development environment (IDE) needed,


which is an environment that contains all of the tools and
features you need to create, run, and test your programs.

Visual Basic 2015 is one of the languages included in Visual


Studio 2015, which is available in many different editions.
Visual basic is not only a
1.1.4 List the elements in IDE language. It’s an
integrated development
environment in which
you can develop, run, test
After you open VB 2015, you can identify the tool and debug your
windows, the menus and toolbars, and the main applications.
window space.

Tool windows are docked on the left and right


sides of the application window, with Quick Launch,
the menu bar, and the standard toolbar at the top.
In the center of the application window is the Start
Page

When a solution or project is loaded, editors and


designers appear in this space.

When you develop an application, you’ll spend


most of your time in this central area.
PROPERTIES
WINDOWS IN VB

Choose anywhere inside


the form Form1 to
select it.

Look at the Properties


window, which should now
be showing the properties
for the form.

Forms have various properties,


you can set the foreground and
background color, title text that
appears at the top of the form,
size of the form, and other
properties.
DESIGN TIME, RUN
TIME & BREAK TIME
To test and debug an application, you
need to understand which of three
modes you are in at any given time.

You use Visual Basic at design time to


create an application, and at run time to
run it.

Introducing break mode, which suspends


the execution of the program so you can
examine and alter data.
Most of the work of creating an application is
done at design time.

You can design forms, draw controls, write


code, and use the Properties window to set or
view property settings.

When an application takes control, you interact with the


application the same way a user would.You can view code,
but you cannot change it. From the Run menu, choose End,
or click the End button to switch back to design time.

From the Run menu, choose Break, click the Break button, or
press CTRL+BREAK to switch to break mode.

Execution is suspended while running the application.You can


view and edit code (choose Code from the View menu, or
press F7), examine or modify data, restart the application,
end execution, or continue execution from the same point.
Programs written for
the Windows
environment typically
Visual Basic 2015 is
use objects such as
an object-oriented
An object is anything check boxes, list
programming
that can be seen, The objects in an boxes, and buttons. A
language, which is a
touched, or used. In object-oriented payroll program, on
language that allows
other words, an program can take on the other hand,
the programmer to
object is nearly any many different forms. might utilize objects
use objects to
thing. found in the real
accomplish a
world, such as a time
program’s goal.
card object, an
employee object, and
a check object.

OBJECT ORIENTED PROGRAMMING


1.2.1 EXPLAIN THE TERM EVENT-DRIVEN
PROGRAMMING

In BASIC, programming is
VISUAL BASIC is a
done in a text-only In Visual Basic,
VISUAL and Event-
environment and the programming is done in a
driven Programming
program is executed graphical environment.
Language.
sequentially.

In Visual Basic, you just


Event-driven because we
need to drag and drop any Some of the events are
need to write code in
graphical object anywhere load, click, double click,
order to perform some
on the form, and you can drag and drop, pressing the
tasks in response to
change its properties using keys and more.
certain events.
the properties window.
EVENT-HANDLING FUNCTION

Event-driven
Some of the events
The only time code because we need to
VB performs are load, click,
will execute in VB is write code in order
event-handling double click, drag
in response to to perform some
function. and drop, pressing
such an event. tasks in response to
the keys and more.
certain events.
1.2.2 EXPLAIN THE PROCESS
OF VISUAL PROGRAMME
DESIGN AND DEVELOPMENT

Gather & Gather & analyze the Program


analyze
Requirements
Design Design the User Interface

Design Design the Program Processing Objects

Code Code the Program

Test Test the Program

Document Document the Program/System

Maintain Maintain the Program/System


1.2.3 EXPLAIN THE STEPS
TO WRITE THE VISUAL
BASIC PROJECTS
1.2.4 EXPLAIN THE VARIOUS FILES THAT MAKE UP A
VISUAL BASIC PROJECT

Visual Basic programs can be called projects. The


project consists of the following files:◦

One or more .frm files which


each refer to the form windows Even more advanced programs
that the user will see during More advanced programs will may include .ocx files which A .vbw file is saved for
.vbp file which is the project program execution. This file also include .bas files. These contain custom controls. Usually each VB project that you
file.You rarely would have to
contains references to the files are called standard code you will be able to write a create.Visual Basic holds
edit this file but you must be
objects and their properties modules and contain external program that only requires the
aware of its existence and
that are located on the procedures that can be used by standard control set which is information necessary to
placement. execute the program here.
particular form. A form file is any form within the project. included with your version of
really called a form module in VB.
VB.
1.2.5 EXPLAIN THE CONCEPTS OF OBJECTS,
PROPERTIES, AND METHODS.
• An object is a combination of code and data that
can be treated as a unit. An object can be a
piece of an application, like a control or a form.
• Properties represent information stored in an
object.
• A method is an action that an object can
perform. For example, Add is a method of
the ComboBox object that adds a new entry to a
combo box.
1.2.6 EXPLAIN THE ELEMENTS
IN IDE
The Visual Basic IDE is made up of a number of components
• 1. Menu Bar
• 2. Tool Bar
• 3. Project Explorer
• 4. Properties window
• 5. Form Layout Window
1.2.6 EXPLAIN THE
ELEMENTS IN IDE
Menu Bar:
• This Menu Bar displays the commands
that are required to build an application.
• The main menu items have sub menu
items that can be chosen when needed.
• The toolbar in the menu bar provide
quick access to the commonly used
commands and a button in the toolbar
is clicked once to carry out the action
represented by it.
1.2.6 EXPLAIN THE
ELEMENTS IN IDE
Tool Bar:
• 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.
1.2.6 EXPLAIN THE ELEMENTS IN IDE

CONTROL DESCRIPTION

• Pointer Provides a way to move and resize the controls


form

• Picture Box Displays icons/bitmaps and meta files. It


displays text or acts as a visual container for other
controls.

• Text box Used to display message and enter text.

• Frame Serves as a visual and functional container for


controls

• Command Button Used to carry out the specified


action when the user chooses it.
1.2.6 EXPLAIN THE ELEMENTS IN IDE

• Checkbox Displays a True/False or Yes/No option.

• Option Button Option Button control which is a part of


an option group allows the user to select only one
option even it displays multiple choices.

• List Box Displays a list of items from which a user can


select one.

• Combo Box Contains a Text-box and a List Box.This


allows the user to select an item from the drop-down
List Box, or to type in a selection in the Text-box.

• HScrollBar and VScrollBar These controls allow the user


to select a value within the specified range of values
1.2.6 EXPLAIN THE ELEMENTS IN IDE

• Timer Executes the timer events at specified


intervals of time
• DriveListBox Displays the valid disk drives
and allows the user to select one of them.
• DirListBox Allows the user to select the
directories and paths, which are displayed.
• FileListBox Displays a set of files from which
a user can select the desired one.
• Shape Used to add shape (rectangle, square
or circle) to a Form
1.2.6 EXPLAIN THE ELEMENTS IN IDE

• Line Used to draw straight line to the Form

• Image used to display images such as icons, bitmaps


and meta files. But less capability than the Picture Box

• Data Enables the user to connect to an existing


database and display information from it.

• OLE Used to link or embed an object, display and


manipulate data from other windows based
applications.

• Label Displays a text that the user cannot modify or


interact with.
HOW TO
EXPLORE VISUAL
BASIC 2015 IN
VISUAL STUDIO

Sign in for the best


result
HOW TO
EXPLORE VISUAL
BASIC 2015 IN
VISUAL STUDIO
HOW TO
EXPLORE VISUAL
BASIC 2015 IN
VISUAL STUDIO
HOW TO
EXPLORE VISUAL
BASIC 2015 IN
VISUAL STUDIO

You might also like