Вы находитесь на странице: 1из 19

OBJECT-ORIENTED

PROGRAMMING
Windows operating system is GUI-capable.
Graphical User Interface(GUI) allows the user to
interact with the computer system.

OBJECT-ORIENTED PROGRAMMING –
the emphasis of a program is on the objects
included in the user interface such as scroll
bars and buttons and the events such as
scrolling and clicking that occur when those
objects are used. OOP is easier to develop,
debug and maintain.
OBJECT-ORIENTED
PROGRAMMING
VISUAL BASIC – is a Microsoft Windows
programming language.

 VB programs are created in an


Integrated Development Environment(IDE).
 Allows to create working programs in a
fraction of the time that it would normally
take to code programs without using IDE.
 Used as Rapid Application
Development(RAD).
IDE – allows the programmer to
create, run, and debug VB.
OBJECT-ORIENTED
PROGRAMMING
Features of VB:
• Graphical User Interface
• Event-handling
• Access to the Win32 API
• Object-oriented features
• Error-handling
• Structured programming
OBJECT-ORIENTED
PROGRAMMING
VB Versions:
2. LEARNING EDITION – provides
fundamental programming capabilities.
3. PROFESSIONAL EDITION – provides
a much richer set of programming
capabilities. It is usually the choice of
most programmers.
4. ENTERPRISE EDITION – used for
developing large-scale computing systems
that meet the needs of substantial
organizations.
OBJECT-ORIENTED
PROGRAMMING
STANDARD EXE – allows the
programmer to create a standard
executable program.

ROJECT – group of related VB file


OBJECT-ORIENTED
PROGRAMMING
STANDARD EXE project
contains:
Project 1 – Form1(Form)
Form Layout
Properties – Form1
Project – Project1
Toolbox
VISUAL BASIC SCREEN
MAIN WINDOW – at the top of the screen
contains the title bar, menu bar and
standard toolbar.

TITLE BAR – indicates that VB is


currently working in design time, which
means it is waiting for you to design your
application.
 Shows also the name of the current
application which is Project1.
VISUAL BASIC SCREEN

MENU BAR – displays the


commands the user will use to build
the application.

STANDARD TOOLBAR – provide


quick access to the most commonly
used menu commands.
VISUAL BASIC SCREEN
FORM WINDOW – one of many objects you
can create in VB, appears in the center of the
screen.
 You design the user interface for your
application.
TOOLBOX WINDOW – contains the set of
tools you use when designing a VB
application.
 Allows you to place object(controls) on
the form.
VISUAL BASIC SCREEN
PROJECT EXPLORER/PROJECT WINDOW –
displays a hierarchical list of the projects included in
the application you are creating currently, as well as
all of the items contained in each project.
 Displays to see the names of the files included in
the application.

PROJECT WINDOW contains:


VIEW CODE – displays a window for writing VB
code.
VIEW OBJECT – displays the form.
TOGGLE FOLDERS – toggles the form folders.
VISUAL BASIC SCREEN

PROPERTIES
WINDOW – each
object has set of
characteristics;
control the object’s
appearance and
VISUAL BASIC MENU
DIRECTORY
1. FILE MENU – options for opening
projects, closing projects, printing
projects.

3. EDIT – options such as cut, paste,


find, undo and delete.

5. VIEW – options for displaying IDE


window and toolbars.

4. PROJECT – options for adding


VISUAL BASIC MENU
DIRECTORY
• FORMAT – options for aligning and
locking a form’s control.

6. DEBUG – options for debugging.

7. RUN – options for executing a program,


stopping a program.

8. QUERY – options for manipulating data


retrieved from a database.
VISUAL BASIC MENU
9. DIRECTORY
DIAGRAM – options for editing and
viewing the design of databases.
10. TOOLS – options for IDE tools and
options for customizing the
environment.
11. ADD-INS – contains for using
installing and removing add-ins.
7.WINDOWS – options for arranging
and displaying windows.
13. HELP – options for getting help.
VISUAL BASIC TOOLBOX

1. POINTER – used to interact


with the controls on the form.
It is not a control.
3. PICTURE BOX – displays
images.
5. LABEL – displays uneditable
text to the user.
4. TEXTBOX – accepting user
VISUAL BASIC TOOLBOX
5. FRAME – grouping other
controls.
6. COMMAND BUTTON –
represents a button. Clicks to
initiate an action.
7. CHECKBOX – provides the
user with a toggle choice.
8. OPTION BUTTON – also
VISUAL BASIC TOOLBOX

9. LISTBOX – provides a list of


items.
10. COMBO BOX – provides a
short list of items.
11. HSCROLLBAR – horizontal
scroll bar.
12. VSCROLLBAR – vertical
scroll bar.
VISUAL BASIC TOOLBOX
1. TIMER – performs a task at
programmer-specified
intervals.
3. DRIVELISTBOX – accessing
the system disk drive.
5. DIRLISTBOX – accessing
directories on a system.
16. FILELISTBOX – accessing
VISUAL BASIC TOOLBOX
1. SHAPE – drawing circles,
rectangles, squares, etc.
3. LINE – drawing lines.
5. IMAGE – displaying images.
7. DATA – connecting to a
database.
21. OLE – interacting with other
window applications.

Вам также может понравиться