SlideShare a Scribd company logo
05/18/16Mr. Roger C. Argarin
1
Introduction to visual basic
programming
Lecture 1: Introduction
05/18/16Mr. Roger C. Argarin
2
Introduction – Learning objectives of the class
Introduction to Visual Basic
 Brief History of Visual Basic
 Basic Concept of Visual Basic Programming Language
 Programming Environment
Use Microsoft Visual Studio .NET2005
Learning Objectives
05/18/16Mr. Roger C. Argarin
3
Visual program design and development
Fundamentals of Object Oriented Programming
(OOP)
Event driven programming
Objects, properties and methods
Write Visual Basic projects
History of Visual Basic
05/18/16Mr. Roger C. Argarin
4
The Visual Basic programming language was
developed by Alan Cooper, an American scientist
in the late 1980’
This programming language was created with the
main purpose of teaching programmers and
developers how to design graphical-user interface
(GUI) programs easily.
Overview of Programming
05/18/16Mr. Roger C. Argarin
5
The Structure and Operation of a Computer
Computer system: hardware and software
Processor (registers, primitive operations)
Main memory (RAM, ROM)
Data types (integers, real, floating-point
numbers, strings, etc.)
Sequence and Data Control
Storage management
Operating environment
Overview of Programming (continue)
05/18/16Mr. Roger C. Argarin
6
Computer System (PC)
Hardware Software
Processor,
Memory
Data types,
Sequence and
Data Control,
Storage Management,
Operating Environment
Major Components of Computer
Systems
05/18/16Mr. Roger C. Argarin
7
Input Unit (keyboard, mouse, scanner, Internet
through TCP/IP)
Central Processing Unit (CPU)
Output Unit
Memory Unit
 Primary memory (RAM, ROM)
 Secondary memory (Hard drives, zip disks, floppy disks, etc)
Object Technology
05/18/16Mr. Roger C. Argarin
8
Objects are essentially reusable software
components that model items in the real world, such
as windows cars, vehicles, and so on
Object technology is a packaging scheme that
enables programmers to create meaningful software
units.
Object-Oriented Programming tends to produce
software that is more understandable, better
organized, and easier to maintain, modify and
debug.
Object Model
05/18/16Mr. Roger C. Argarin
9
 Object ==> Noun
 Form and Controls
 Property ==> Adjective
 Color of a Form
 Method ==> Verb
 Move a Form
 Event ==> Occurs when the user takes an action
 User clicks a button, User moves a form
 Class ==> Template to create new object
 Each control added is an Instance of a Class
Dot Notation
05/18/16Mr. Roger C. Argarin
10
Used to reference object's properties and events in
code
 Object dot Property
 Form.Text, TextBox.Text
 Object dot Event
 Form.Hide( ), TextBox.Focus( )
To reference an object's events use an underscore
instead of a dot
 Button_Click, ListBox_TextChanged
Object Model Analogy
05/18/16Mr. Roger C. Argarin
11
Class = automobile
Properties = make, model, color, year
Object = each individual car
 Object is also an Instance of the automobile class
Methods = start, stop, speedup, slowdown
Events = car arrives, car crashes
Visual Basic .NET Programming
05/18/16Mr. Roger C. Argarin
12
Learning Visual Basic.NET Programming Language
includes to learn:
 The graphical user interface or GUI (“gooey”) which is an
essential component of visual programming
 The GUI defines how various elements look and function
 Visual Basic programming language
Microsoft Developers Network Homepage for VB.NET:
http://msdn.microsoft.com/vbasic
A Sample Graphical User Interface
(GUI)
05/18/16Mr. Roger C. Argarin
13
Label
GroupBox
RadioButtons
TextBox
PictureBox
Buttons
Form
VB.NET Program Development
05/18/16Mr. Roger C. Argarin
14
To create a VB.NET program you will utilize the
Visual Basic .NET 2005 development environment,
and you will
 create a window, called form
 select elements, which are classes, from a toolbox and place
them within the window, called controls
 write code for each object that you place on the window that
defines how the object responds to various events, called
object-oriented programming (OOP).
Event-Driven Programming
05/18/16Mr. Roger C. Argarin
15
The style of Execution as shown below is called
event-driven:
 A GUI determines how a user interacts with the program
 Each user interaction with the computer: pressing a key,
clicking a button, or selecting a menu item causes an event to
occur
 Whenever an event occurs, the code you have written to
handle that event is executed
About Visual Studio .NET
Framework
05/18/16Mr. Roger C. Argarin
16
Visual Studio .NET 2005 includes:
 Visual Basic, Visual C++, C#, J#, and the .NET framework.
 The .NET framework allowing objects from different
languages to operate together
 The .NET languages-based programs all compile to a
common machine language, called Microsoft Intermediate
Language (MSIL)
 The MSIL code runs in the Common Language Runtime
(CLR), which is part of the file .NET framework.
VB.NET Program Development
Process
05/18/16Mr. Roger C. Argarin
17
Planning (design)
 design the GUI (user interface)
 list the objects and properties needed
 plan the event procedures (what the code does)
Programming (implementation)
 define the GUI using objects (Forms, Text Boxes, Labels, etc.
 set the properties
 write BASIC code to implement procedures
VB.NET Application Files
05/18/16Mr. Roger C. Argarin
18
 Each Visual Basic application create the following
files with extensions:
 .sln - a solution file that holds information about the
project. This is the only file that is opened
 .suo - a solution user options file that stores
information about the selected options
 .vb - a .vb file that holds the definition of a form
 .resx - a resource file for the form
 .vbproj - a project file that describes the project and
lists the files are included
 .vbproj.user - a project user option file that holds
project option settings
Using Microsoft Visual Studio .NET
05/18/16Mr. Roger C. Argarin
19
 Click on
-> Start
 Choose ->
All
Programs
 Choose ->
Microsoft
Visual
Studio
.NET 2005
 Click on
->
Microsoft
Visual
Studio
.NET 2005
Using Microsoft Visual Studio .NET
(continue)
05/18/16Mr. Roger C. Argarin
20
• Click
on->
File
• Choose
-> New
• Select-
>
Project
Using Microsoft Visual Studio .NET
(continue)
05/18/16Mr. Roger C. Argarin
21
The Microsoft VS Development Environment is also
called integrated development environment (IDE):
 A form designer
 A code editor
 A compiler
 A debugger
 An object browser
Using Microsoft Visual Studio .NET (continue)
05/18/16Mr. Roger C. Argarin
22
 Menu bar – includes file, edit, view, project, build, debug, data, format, tools,
window, and help menu
 Toolbar - includes many buttons as shortcuts for frequently used operations.
Each button represents a command that can be selected from a menu. Most
toolbars’ buttons are displayed in the main window of the IDE
 Each window can be moved, resized,
opened, closed, or customized
 Menu bar
 Toolbar
Menu bar
Toolbar
05/18/16Mr. Roger C. Argarin
23
Form
window
Properties window
Solution
Explorer
window
Menu bar
Tabs
Toolbox
Tool bar
The Toolbox
05/18/16Mr. Roger C. Argarin
24
 Click
Toolbox
from the
Toolbar
s
 Toolbox
contains
a list of
tools
that
helps to
design
projects
Solution Explorer
05/18/16Mr. Roger C. Argarin
25
 View Code
 View
Design/
Form
 Properties
welcome.slnwelcome.sln
The Property Window
05/18/16Mr. Roger C. Argarin
26
•The properties window allows you to see and set all of the properties of the
particular object that you have placed on the form. There are many properties
for each object, and all can be seen by scrolling down the properties window.
Summary
05/18/16Mr. Roger C. Argarin
27
Introduction – Learning Objectives of the class
Introduction to Visual Basic .NET2005
 Basic Concept of Visual Basic
 Visual Basic Programming Language
Use Microsoft Visual Studio .NET2005
Next - First Visual Basic Planning and Programming

More Related Content

What's hot

Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programmingRoger Argarin
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
Bagzzz
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)pbarasia
 
Procedures functions structures in VB.Net
Procedures  functions  structures in VB.NetProcedures  functions  structures in VB.Net
Procedures functions structures in VB.Net
tjunicornfx
 
Exception Handling in VB.Net
Exception Handling in VB.NetException Handling in VB.Net
Exception Handling in VB.Net
rishisingh190
 
visual basic programming
visual basic programmingvisual basic programming
visual basic programming
sowndaryadharmaraj
 
Visual studio.net
Visual studio.netVisual studio.net
Visual studio.net
Dr. C.V. Suresh Babu
 
Vb decision making statements
Vb decision making statementsVb decision making statements
Vb decision making statements
pragya ratan
 
Java awt (abstract window toolkit)
Java awt (abstract window toolkit)Java awt (abstract window toolkit)
Java awt (abstract window toolkit)
Elizabeth alexander
 
Ch 3 event driven programming
Ch 3 event driven programmingCh 3 event driven programming
Ch 3 event driven programmingChaffey College
 
Object Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaionObject Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaion
Pritom Chaki
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
Ahllen Javier
 
Prgramming paradigms
Prgramming paradigmsPrgramming paradigms
Prgramming paradigms
Anirudh Chauhan
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
Rahul Pola
 
Error handling and debugging in vb
Error handling and debugging in vbError handling and debugging in vb
Error handling and debugging in vb
Salim M
 
VB Script
VB ScriptVB Script
VB Script
Satish Sukumaran
 
Introduction to java beans
Introduction to java beansIntroduction to java beans
Introduction to java beans
Hitesh Parmar
 
VB.NET:An introduction to Namespaces in .NET framework
VB.NET:An introduction to  Namespaces in .NET frameworkVB.NET:An introduction to  Namespaces in .NET framework
VB.NET:An introduction to Namespaces in .NET framework
Richa Handa
 

What's hot (20)

Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
 
Procedures functions structures in VB.Net
Procedures  functions  structures in VB.NetProcedures  functions  structures in VB.Net
Procedures functions structures in VB.Net
 
Exception Handling in VB.Net
Exception Handling in VB.NetException Handling in VB.Net
Exception Handling in VB.Net
 
Introduction to Visual Basic
Introduction to Visual Basic Introduction to Visual Basic
Introduction to Visual Basic
 
visual basic programming
visual basic programmingvisual basic programming
visual basic programming
 
Visual studio.net
Visual studio.netVisual studio.net
Visual studio.net
 
Vb decision making statements
Vb decision making statementsVb decision making statements
Vb decision making statements
 
Java awt (abstract window toolkit)
Java awt (abstract window toolkit)Java awt (abstract window toolkit)
Java awt (abstract window toolkit)
 
Ch 3 event driven programming
Ch 3 event driven programmingCh 3 event driven programming
Ch 3 event driven programming
 
Vb basics
Vb basicsVb basics
Vb basics
 
Object Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaionObject Oriented Programing JAVA presentaion
Object Oriented Programing JAVA presentaion
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
 
Prgramming paradigms
Prgramming paradigmsPrgramming paradigms
Prgramming paradigms
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
 
Error handling and debugging in vb
Error handling and debugging in vbError handling and debugging in vb
Error handling and debugging in vb
 
VB Script
VB ScriptVB Script
VB Script
 
Introduction to java beans
Introduction to java beansIntroduction to java beans
Introduction to java beans
 
VB.NET:An introduction to Namespaces in .NET framework
VB.NET:An introduction to  Namespaces in .NET frameworkVB.NET:An introduction to  Namespaces in .NET framework
VB.NET:An introduction to Namespaces in .NET framework
 

Similar to Visual basic

Vb lecture
Vb lectureVb lecture
Vb lecture
alldesign
 
VB6_INTRODUCTION.ppt
VB6_INTRODUCTION.pptVB6_INTRODUCTION.ppt
VB6_INTRODUCTION.ppt
BhuvanaR13
 
Visual basic
Visual basicVisual basic
Visual basic
umesh patil
 
Csharp dot net
Csharp dot netCsharp dot net
Csharp dot net
Revanth Mca
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
DivyaR219113
 
vb.pptx
vb.pptxvb.pptx
vb.pptx
CherryLim21
 
vb-160518151614.pdf
vb-160518151614.pdfvb-160518151614.pdf
vb-160518151614.pdf
LimEchYrr
 
vb-160518151614.pptx
vb-160518151614.pptxvb-160518151614.pptx
vb-160518151614.pptx
LimEchYrr
 
Programming basics
Programming basicsProgramming basics
Programming basics
Senri DLN
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
gebrsh
 
1 Fundamentals of EDP (2).pptx
1 Fundamentals of EDP (2).pptx1 Fundamentals of EDP (2).pptx
1 Fundamentals of EDP (2).pptx
KabadaSori
 
VB.Net GUI Unit_01
VB.Net GUI Unit_01VB.Net GUI Unit_01
VB.Net GUI Unit_01
Prashanth Shivakumar
 
DotNet Introduction
DotNet IntroductionDotNet Introduction
DotNet Introductionnandhu8124
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
EliasPetros
 
Vb6.0 intro
Vb6.0 introVb6.0 intro
Vb6.0 intro
JOSEPHINEA6
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
ASHRAFALI592771
 
The fundamental problems of GUI applications and why people choose React
The fundamental problems of GUI applications and why people choose ReactThe fundamental problems of GUI applications and why people choose React
The fundamental problems of GUI applications and why people choose React
Oliver N
 
Visual basic
Visual basic Visual basic
Visual basic
Shabista Imam
 

Similar to Visual basic (20)

Vb lecture
Vb lectureVb lecture
Vb lecture
 
VB6_INTRODUCTION.ppt
VB6_INTRODUCTION.pptVB6_INTRODUCTION.ppt
VB6_INTRODUCTION.ppt
 
Visual basic
Visual basicVisual basic
Visual basic
 
Csharp dot net
Csharp dot netCsharp dot net
Csharp dot net
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
 
vb.pptx
vb.pptxvb.pptx
vb.pptx
 
vb-160518151614.pdf
vb-160518151614.pdfvb-160518151614.pdf
vb-160518151614.pdf
 
vb-160518151614.pptx
vb-160518151614.pptxvb-160518151614.pptx
vb-160518151614.pptx
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
1 Fundamentals of EDP (2).pptx
1 Fundamentals of EDP (2).pptx1 Fundamentals of EDP (2).pptx
1 Fundamentals of EDP (2).pptx
 
VB.Net GUI Unit_01
VB.Net GUI Unit_01VB.Net GUI Unit_01
VB.Net GUI Unit_01
 
Chapter 01
Chapter 01Chapter 01
Chapter 01
 
DOTNET
DOTNETDOTNET
DOTNET
 
DotNet Introduction
DotNet IntroductionDotNet Introduction
DotNet Introduction
 
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
 
Vb6.0 intro
Vb6.0 introVb6.0 intro
Vb6.0 intro
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
 
The fundamental problems of GUI applications and why people choose React
The fundamental problems of GUI applications and why people choose ReactThe fundamental problems of GUI applications and why people choose React
The fundamental problems of GUI applications and why people choose React
 
Visual basic
Visual basic Visual basic
Visual basic
 

More from sanjay joshi

Ccna security
Ccna security Ccna security
Ccna security
sanjay joshi
 
Array in c language
Array in c languageArray in c language
Array in c language
sanjay joshi
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming language
sanjay joshi
 
Cloud computing
Cloud computingCloud computing
Cloud computing
sanjay joshi
 
Static and dynamic polymorphism
Static and dynamic polymorphismStatic and dynamic polymorphism
Static and dynamic polymorphism
sanjay joshi
 
Embeded system
Embeded systemEmbeded system
Embeded system
sanjay joshi
 
Distributed database
Distributed databaseDistributed database
Distributed database
sanjay joshi
 
Vb and asp.net
Vb and asp.netVb and asp.net
Vb and asp.net
sanjay joshi
 
Angular js
Angular jsAngular js
Angular js
sanjay joshi
 
introduction to c programming language
introduction to c programming languageintroduction to c programming language
introduction to c programming language
sanjay joshi
 
Oops in php
Oops in phpOops in php
Oops in php
sanjay joshi
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
sanjay joshi
 
Css3 responsive
Css3 responsive Css3 responsive
Css3 responsive
sanjay joshi
 
Html ppt
Html pptHtml ppt
Html ppt
sanjay joshi
 
Java script
Java scriptJava script
Java script
sanjay joshi
 
Data Structure And Queue
Data Structure And Queue Data Structure And Queue
Data Structure And Queue
sanjay joshi
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
sanjay joshi
 
Static and dynamic polymorphism
Static and dynamic polymorphismStatic and dynamic polymorphism
Static and dynamic polymorphism
sanjay joshi
 
Angularjs
AngularjsAngularjs
Angularjs
sanjay joshi
 
Distributed database
Distributed databaseDistributed database
Distributed database
sanjay joshi
 

More from sanjay joshi (20)

Ccna security
Ccna security Ccna security
Ccna security
 
Array in c language
Array in c languageArray in c language
Array in c language
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming language
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Static and dynamic polymorphism
Static and dynamic polymorphismStatic and dynamic polymorphism
Static and dynamic polymorphism
 
Embeded system
Embeded systemEmbeded system
Embeded system
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
Vb and asp.net
Vb and asp.netVb and asp.net
Vb and asp.net
 
Angular js
Angular jsAngular js
Angular js
 
introduction to c programming language
introduction to c programming languageintroduction to c programming language
introduction to c programming language
 
Oops in php
Oops in phpOops in php
Oops in php
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
Css3 responsive
Css3 responsive Css3 responsive
Css3 responsive
 
Html ppt
Html pptHtml ppt
Html ppt
 
Java script
Java scriptJava script
Java script
 
Data Structure And Queue
Data Structure And Queue Data Structure And Queue
Data Structure And Queue
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Static and dynamic polymorphism
Static and dynamic polymorphismStatic and dynamic polymorphism
Static and dynamic polymorphism
 
Angularjs
AngularjsAngularjs
Angularjs
 
Distributed database
Distributed databaseDistributed database
Distributed database
 

Recently uploaded

Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 

Recently uploaded (20)

Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 

Visual basic

  • 1. 05/18/16Mr. Roger C. Argarin 1 Introduction to visual basic programming
  • 2. Lecture 1: Introduction 05/18/16Mr. Roger C. Argarin 2 Introduction – Learning objectives of the class Introduction to Visual Basic  Brief History of Visual Basic  Basic Concept of Visual Basic Programming Language  Programming Environment Use Microsoft Visual Studio .NET2005
  • 3. Learning Objectives 05/18/16Mr. Roger C. Argarin 3 Visual program design and development Fundamentals of Object Oriented Programming (OOP) Event driven programming Objects, properties and methods Write Visual Basic projects
  • 4. History of Visual Basic 05/18/16Mr. Roger C. Argarin 4 The Visual Basic programming language was developed by Alan Cooper, an American scientist in the late 1980’ This programming language was created with the main purpose of teaching programmers and developers how to design graphical-user interface (GUI) programs easily.
  • 5. Overview of Programming 05/18/16Mr. Roger C. Argarin 5 The Structure and Operation of a Computer Computer system: hardware and software Processor (registers, primitive operations) Main memory (RAM, ROM) Data types (integers, real, floating-point numbers, strings, etc.) Sequence and Data Control Storage management Operating environment
  • 6. Overview of Programming (continue) 05/18/16Mr. Roger C. Argarin 6 Computer System (PC) Hardware Software Processor, Memory Data types, Sequence and Data Control, Storage Management, Operating Environment
  • 7. Major Components of Computer Systems 05/18/16Mr. Roger C. Argarin 7 Input Unit (keyboard, mouse, scanner, Internet through TCP/IP) Central Processing Unit (CPU) Output Unit Memory Unit  Primary memory (RAM, ROM)  Secondary memory (Hard drives, zip disks, floppy disks, etc)
  • 8. Object Technology 05/18/16Mr. Roger C. Argarin 8 Objects are essentially reusable software components that model items in the real world, such as windows cars, vehicles, and so on Object technology is a packaging scheme that enables programmers to create meaningful software units. Object-Oriented Programming tends to produce software that is more understandable, better organized, and easier to maintain, modify and debug.
  • 9. Object Model 05/18/16Mr. Roger C. Argarin 9  Object ==> Noun  Form and Controls  Property ==> Adjective  Color of a Form  Method ==> Verb  Move a Form  Event ==> Occurs when the user takes an action  User clicks a button, User moves a form  Class ==> Template to create new object  Each control added is an Instance of a Class
  • 10. Dot Notation 05/18/16Mr. Roger C. Argarin 10 Used to reference object's properties and events in code  Object dot Property  Form.Text, TextBox.Text  Object dot Event  Form.Hide( ), TextBox.Focus( ) To reference an object's events use an underscore instead of a dot  Button_Click, ListBox_TextChanged
  • 11. Object Model Analogy 05/18/16Mr. Roger C. Argarin 11 Class = automobile Properties = make, model, color, year Object = each individual car  Object is also an Instance of the automobile class Methods = start, stop, speedup, slowdown Events = car arrives, car crashes
  • 12. Visual Basic .NET Programming 05/18/16Mr. Roger C. Argarin 12 Learning Visual Basic.NET Programming Language includes to learn:  The graphical user interface or GUI (“gooey”) which is an essential component of visual programming  The GUI defines how various elements look and function  Visual Basic programming language Microsoft Developers Network Homepage for VB.NET: http://msdn.microsoft.com/vbasic
  • 13. A Sample Graphical User Interface (GUI) 05/18/16Mr. Roger C. Argarin 13 Label GroupBox RadioButtons TextBox PictureBox Buttons Form
  • 14. VB.NET Program Development 05/18/16Mr. Roger C. Argarin 14 To create a VB.NET program you will utilize the Visual Basic .NET 2005 development environment, and you will  create a window, called form  select elements, which are classes, from a toolbox and place them within the window, called controls  write code for each object that you place on the window that defines how the object responds to various events, called object-oriented programming (OOP).
  • 15. Event-Driven Programming 05/18/16Mr. Roger C. Argarin 15 The style of Execution as shown below is called event-driven:  A GUI determines how a user interacts with the program  Each user interaction with the computer: pressing a key, clicking a button, or selecting a menu item causes an event to occur  Whenever an event occurs, the code you have written to handle that event is executed
  • 16. About Visual Studio .NET Framework 05/18/16Mr. Roger C. Argarin 16 Visual Studio .NET 2005 includes:  Visual Basic, Visual C++, C#, J#, and the .NET framework.  The .NET framework allowing objects from different languages to operate together  The .NET languages-based programs all compile to a common machine language, called Microsoft Intermediate Language (MSIL)  The MSIL code runs in the Common Language Runtime (CLR), which is part of the file .NET framework.
  • 17. VB.NET Program Development Process 05/18/16Mr. Roger C. Argarin 17 Planning (design)  design the GUI (user interface)  list the objects and properties needed  plan the event procedures (what the code does) Programming (implementation)  define the GUI using objects (Forms, Text Boxes, Labels, etc.  set the properties  write BASIC code to implement procedures
  • 18. VB.NET Application Files 05/18/16Mr. Roger C. Argarin 18  Each Visual Basic application create the following files with extensions:  .sln - a solution file that holds information about the project. This is the only file that is opened  .suo - a solution user options file that stores information about the selected options  .vb - a .vb file that holds the definition of a form  .resx - a resource file for the form  .vbproj - a project file that describes the project and lists the files are included  .vbproj.user - a project user option file that holds project option settings
  • 19. Using Microsoft Visual Studio .NET 05/18/16Mr. Roger C. Argarin 19  Click on -> Start  Choose -> All Programs  Choose -> Microsoft Visual Studio .NET 2005  Click on -> Microsoft Visual Studio .NET 2005
  • 20. Using Microsoft Visual Studio .NET (continue) 05/18/16Mr. Roger C. Argarin 20 • Click on-> File • Choose -> New • Select- > Project
  • 21. Using Microsoft Visual Studio .NET (continue) 05/18/16Mr. Roger C. Argarin 21 The Microsoft VS Development Environment is also called integrated development environment (IDE):  A form designer  A code editor  A compiler  A debugger  An object browser
  • 22. Using Microsoft Visual Studio .NET (continue) 05/18/16Mr. Roger C. Argarin 22  Menu bar – includes file, edit, view, project, build, debug, data, format, tools, window, and help menu  Toolbar - includes many buttons as shortcuts for frequently used operations. Each button represents a command that can be selected from a menu. Most toolbars’ buttons are displayed in the main window of the IDE  Each window can be moved, resized, opened, closed, or customized  Menu bar  Toolbar Menu bar Toolbar
  • 23. 05/18/16Mr. Roger C. Argarin 23 Form window Properties window Solution Explorer window Menu bar Tabs Toolbox Tool bar
  • 24. The Toolbox 05/18/16Mr. Roger C. Argarin 24  Click Toolbox from the Toolbar s  Toolbox contains a list of tools that helps to design projects
  • 25. Solution Explorer 05/18/16Mr. Roger C. Argarin 25  View Code  View Design/ Form  Properties welcome.slnwelcome.sln
  • 26. The Property Window 05/18/16Mr. Roger C. Argarin 26 •The properties window allows you to see and set all of the properties of the particular object that you have placed on the form. There are many properties for each object, and all can be seen by scrolling down the properties window.
  • 27. Summary 05/18/16Mr. Roger C. Argarin 27 Introduction – Learning Objectives of the class Introduction to Visual Basic .NET2005  Basic Concept of Visual Basic  Visual Basic Programming Language Use Microsoft Visual Studio .NET2005 Next - First Visual Basic Planning and Programming

Editor's Notes

  1. Here are more details of each window that opens when you Start a New Project in Microsoft Visual Basic .NET2005. The IDE main window includes Toolbars, Document Window, Form Designer, Solution Explorer Window, Properties Window, and Toolbox. You should make the Visual Basic main window full-screen in order to see all of the smaller windows. You see the menu bar at the top, and the toolbar right below. If you do not have the same layout as above, go to the View menu from menu bar and select whichever of the windows are not presented. After that, you see the Form window is at the center. The Form window is where you design a form that makes up your user interface. The Form design window of Form1 is currently displaying, you can drag the form’s sizing handles to change the size of the form. When you begin a new Visual Basic windows project, a new form is added to the project with the default name Form1. The most used window is the Toolbox, which is located at the left side of screen. The Toolbox appears when you press the Toolbox Tab on the left of the window, The Toolbox contains all of the controls to be used this semester. The solution explorer window is right next to the Form window. The solution explorer window enables you to select the form or module you want to see or to switch between a form and a Basic code for the project. The properties window is at the right side of screen. The Properties window contains all of the properties of whichever control you have selected on the form and is extremely important because this is where you will change many properties of each object.
  2. The toolbox holds the tools you need to place controls on a form. You may have more or different tools in your toolbox, depending on the edition of visual basic you are using, such as standard edition, professional edition, or enterprise edition.
  3. The Solution Explorer window holds the filenames for the files included in your project welcome and a list of the classes it references. The window’s title bar holds the name of your solution file (welcome.sln), which is the name you give it in the New Project dialog box. Here, there is just one form, named Form1, but later we will have more than one form visible in this window.