Microsoft Visual Basic 2010
Microsoft Visual Basic 2010
ONE
Introduction to Visual Basic 2010 Programming
Objectives
Understand software and computer programs
State the role of a developer in creating computer
programs
Specify the use of a graphical user interface and
describe an event-driven program
Specify the roles of input, processing, output, and
data when running a program on a computer
Describe the arithmetic operations a computer
program can perform (+, -, *, /, and ^)
Objectives
Explain the logical operations a computer program can
perform ( equal, less than, greater than, not equal, greater
than or equal to, less than or equal to)
Define and describe the use of a database
Identify the use of a computer programming language in
general, and Visual Basic 2010 in particular
Explain the use of Visual Studio 2010 IDE when developing
Visual Basic 2010 programs
Specify the programming languages available for use with
Visual Studio 2010 (Visual Basic, C++, C#, F#)
Objectives
Discuss the .NET 4.0 Framework
Explain RAD
Describe classes, objects, and the .NET Framework
4.0 class libraries
Explain ADO.NET 4.0, ASP.NET 4.0, MSIL, and CLR
Specify the types of Visual Basic 2010 applications
Introduction
The set of instructions that directs a computer to
perform tasks is called computer software, or a
computer program
5
Chapter 1: Introduction to Visual Basic 2010 Programming
Introduction
Computer hardware is the physical equipment
associated with a computer
Introduction
The basic function of many
computer programs is to
accept some form of data
(sometimes called input
data) manipulate the data in
some manner (sometimes
called processing), and
create some form of output
data usable by people or
other computers, and
storage
Introduction
In order for the computer to
execute a program:
Program and data must be
placed in the computers
random access memory
(RAM)
The central processing unit
(CPU) can access the
instructions in the program
and the data in RAM to
perform activities as
directed by the program
Introduction
Saving, or storing, data refers to placing the data or
software electronically on a storage medium in a
persistent form.
Hard disk
Universal Serial Bus (USB) drive
10
Comments
Event-Handler
Code
11
12
Examples of events:
The user enters the account number in the Account
Number box
The user clicks the Display Account Balance button
The user clicks the Reset Window button to clear the
text boxes and prepare the user interface for the next
account number
13
Input Operation
14
Output Operation
73-0529
$13,432.85
15
Addition
Subtraction
Multiplication
Division
Exponentiation
16
Logical Operations
Computers, through the use of computer programs, can
compare numbers, letters, and special characters
The program will perform a processing task, based on the
result of the comparison
Logical operations:
Comparing to determine if two values are equal
Comparing to determine if two values are not equal
Comparing to determine if one value is greater than another
value
Comparing to determine if one value is less than another
value
17
18
19
20
21
22
23
Soluion Explorer
Form Designer
Properties
Error List
24
Programming Languages
Visual Basic
Programming language that allows developers to easily
build complex Windows and Web programs, as well as
other software tools
Based on the BASIC language
C++
Derivative of the programming language, C
Visual C# (pronounced C Sharp)
Synthesis of the elegance and syntax of C++ with many of
the productivity benefits enjoyed in Visual Basic
Visual F# (pronounced F Sharp)
Multipurpose language known for its math-intensive focus
Chapter 1: Introduction to Visual Basic 2010 Programming
25
26
27
28
ADO.NET 4.0
ADO.NET 4.0 (ActiveX Data Objects) provides the
functionality for a program to perform four primary
tasks when working with a database:
29
ASP.NET 4.0
ASP.NET 4.0 allows developers to use Visual Studio
2010 to build powerful, sophisticated Web
applications
Almost all .NET framework objects are available in
ASP.NET 4.0
Easy to deploy a Web application on a Web server
30
31
32
Mobile application
Designed to run on mobile devices running the Windows
CE operating system
33
34
Summary
Understand software and computer programs
State the role of a developer in creating computer
programs
Specify the use of a graphical user interface and
describe an event-driven program
Specify the roles of input, processing, output, and
data when running a program on a computer
Describe the arithmetic operations a computer
program can perform
35
Summary
Explain the logical operations a computer program
can perform
Define and describe the use of a database
Identify the use of a computer programming
language in general, and Visual Basic 2010 in particular
Explain the use of Visual Studio 2010 when developing
Visual Basic 2010 programs
Specify the programming languages available for use
with Visual Studio 2010
36
Summary
Explain the .NET 4.0 Framework
Explain RAD
Describe classes, objects, and the .NET Framework
4.0 class libraries
Explain ADO.NET 4.0, ASP.NET 4.0, MSIL, and CLR
Specify the types of Visual Basic 2010 applications
37