LESSON1-INTRO-TO-VISUALBASIC-1
LESSON1-INTRO-TO-VISUALBASIC-1
OVERVIEW OF
VISUAL BASIC
What is Visual Basic?
Visual Basic is a third-generation event-driven
programming language and Integrated Development
Programming (IDE) first released by Microsoft in
1991 for its COM Programming Model . It evolved
from the earlier DOS version called
BASIC. BASIC means :-
Beginners’All Purpose Symbolic Instruction Code.
Since then, Microsoft has released many
versions of Visual Basic, from Visual Basic 1.0
to the final version Visual Basic 6.0. Visual
Basic is a user-friendly programming language
designed for beginners, and it enables anyone to
develop GUI window applications easily.
VB AS PROGRAMMING LANGUAGE
VISUAL BASIC
INTEGRATED
DEVELOPMENT
ENVIRONMENT (IDE)
INTRODUCTION
IDE is a term commonly used in the programming
world to describe the interface and environment that
we use to create our applications. It is called integrated
because we can access virtually all of the development
tools that we need from one screen called an interface.
The IDE is also commonly referred to as the design
environment, or the program
INTERFACE OF VISUAL BASIC
When user start the window, it display a screen
having certain option. With the help of this
screen user can select the type of project user
want to make.
Project
Window
Form Layout
Window
Introduction to
Object-Oriented
Programming (OOP)
Visual Basic (VB) is an object-oriented programming
(OOP) language, which means it uses objects to model real-
world entities.
Key Concepts of OOP:
1. Class: A blueprint for creating objects.
2. Object: An instance of a class.
3. Modules: Containers for organizing code.
4. Events: Actions or occurrences that trigger code
execution.
CLASSES in Visual Basic
A class is a
user-defined
data type that
defines
properties,
methods, and
events..
CLASSES in Visual Basic
MODULES in Visual Basic
A module is a container for procedures,
variables, and functions that can be shared
across an application.
Purpose
1. Provide global scope to shared code.
2. Group related procedures and functions
MODULES in Visual Basic
EVENTS in Visual Basic
Events are actions or occurrences that an object can recognize
and respond to.
Common Events in VB.
Click: Triggered when a control (e.g., button) is clicked.
Load: Triggered when a form is loaded.
TextChanged: Triggered when the text of a control (e.g.,
textbox) changes.
EVENTS in Visual Basic
EXAMPLE: BUTTON CLICK EVENT
OBJECT
BYTE Data types
supported
VARIANT DATE
BOOLEAN
CATEGORIES OF DATA TYPES
Visual Basic supports several categories of data types:
1.Numeric Data Types
2.Boolean Data Type
3. Character and String Data Types
4.Date and Time Data Type
5. Object Data Type
6. Variant Data Type
NUMERIC DATA TYPES
BOOLEAN DATA TYPES
CHARACTER & STRING DATA TYPES
DATE & TIME DATA TYPES
OBJECT DATA TYPES
VARIANT DATA TYPES
PROGRAMMING TASK:
LOG IN FORM DRAFTING
Functionality and The login form functions perfectly, meeting all specified
Accuracy client requirements with no errors. 15
Design and User The design is professional, user-friendly, and aligned with
Interface client specifications. 15
Code Structure and The code is well-organized, efficient, and follows best 10
Logic practices with appropriate comments.
Feature List Drafting The feature list is comprehensive, clearly aligned with 10
client requirements, and thoroughly documented
TOTAL 30
THANK YOU FOR LISTENING
QUESTIONS???
slidesdocs.com