Skip to content

Visual Basic 2005 How to Program

Best in textbook rentals since 2012!

ISBN-10: 0131869000

ISBN-13: 9780131869004

Edition: 3rd 2006 (Revised)

Authors: Harvey M. Deitel, Paul J. Deitel

List price: $122.80
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Description:

With Visual Basic.NET, Microsoft transforms Visual Basic into a supercharged tool for developing next-generation Web services and Windows applications. Now, learn Visual Basic.NET hands-on, through thousands of lines of live code in hundreds of complete working programs -- explained with exceptional clarity by the renowned programming trainers of Deitel & Associates! Visual Basic.NET How to Program starts by introducing the Visual Studio.NET development environment; then covers all key VB.NET programming fundamentals, from control structures to methods, arrays, and object-oriented programming. It delivers in-depth coverage of VB.NET GUI development; multithreading; graphics and multimedia;…    
Customers also bought

Book details

List price: $122.80
Edition: 3rd
Copyright year: 2006
Publisher: Prentice Hall PTR
Binding: Paperback
Pages: 1568
Size: 7.00" wide x 9.00" long x 2.00" tall
Weight: 4.796
Language: English

Preface
Introduction to Computers, the Internet and Visual Basic
Introduction
What Is a Computer?
Computer Organization
Early Operating Systems
Personal Computing, Distributed Computing and Client/Server Computing
Hardware Trends
Microsoft's Windows Operating System
Machine Languages, Assembly Languages and High-Level Languages
Visual Basic
C, C++, Java and Visual C#
Other High-Level Languages
The Internet and the World Wide Web
Extensible Markup Language (XML)
Microsoft's .NET
The .NET Framework and the Common Language Runtime
Test-Driving a Visual Basic Application
(Only Required Section of the Case Study) Software Engineering Case Study: Introduction to Object Technology and the UML
Wrap-Up
Web Resources
Introduction to the Visual Basic Express 2005 IDE
Introduction
Overview of the Visual Studio 2005 IDE
Menu Bar and Toolbar
Navigating the Visual Studio IDE
Solution Explorer
Toolbox
Properties Window
Using Help
Using Visual Programming to Create a Simple Program that Displays Text and an Image
Wrap-Up
Web Resources
Introduction to Visual Basic Programming
Introduction
Displaying a Line of Text
Creating Your First Console Application in Visual Basic Express
Displaying a Single Line of Text with Multiple Statements
Adding Integers
Memory Concepts
Arithmetic
Decision Making: Equality and Relational Operators
Using a Message Dialog to Display a Message
(Optional) Software Engineering Case Study: Examining the ATM Requirements Document
Wrap-Up
Web Resources
Introduction to Classes and Objects
Introduction
Classes, Objects, Methods and Instance Variables
Declaring a Class with a Method and Instantiating an Object of a Class
Declaring a Method with a Parameter
Instance Variables and Properties
Value Types and Reference Types
Initializing Objects with Constructors
Validating Data with Set Accessors in Properties
(Optional) Software Engineering Case Study: identifying the Classes in the ATM Requirements Document
Wrap-Up
Control Statements: Part I
Introduction
Algorithms
Pseudocode
Control Structures
If...Then Selection Statement
If...Then...Else Selection Statement
While Repetition Statement
Do While...Loop Repetition Statement
Do Until...Loop Repetition Statement
Compound Assignment Operators
Formulating Algorithms: Counter-Controlled Repetition
Formulating Algorithms: Sentinel-Controlled Repetition
Formulating Algorithms: Nested Control Statements
Formulating Algorithms: Nested Repetition Statements
Visual Basic Programming in a Windows Application
(Optional) Software Engineering Case Study: Identifying Class Attributes in the ATM System
Wrap-Up
Control Statements: Part 2
Introduction
Essentials of Counter-Controlled Repetition
For...Next Repetition Statement
Examples Using the For...Next Statement
GradeBook Case Study: Select...Case Multiple-Selection Statement
Do...Loop While Repetition Statement
Do...Loop Until Repetition Statement
Using the Exit Statement in Repetition Statements
Using the Continue Statement in Repetition Statements
Logical Operators
(Optional) Software Engineering Case Study: Identifying Objects' States and Activities in the ATM System
Wrap-Up
Methods: A Deeper Look
Introduction
Modules, Classes and Methods
Subroutines: Methods That Do Not Return a Value
Functions: Methods That Return a Value
Shared Methods and Class Math
GradBook Case Study: Declaring Methods with Multiple Parameters
Notes on Declaring and Using Methods
Method Call Stack and Activation Records
Implicit Argument Conversions
Option Strict and Data-Type Conversions
Value Types and Reference Types
Framework Class Library Namespaces
Passing Arguments: Pass-by-Value vs. Pass-by-Reference
Scope of Declarations
Case Study: Random Number Generation
Case Study: A Game of Chance
Method Overloading
Optional Parameters
Recursion
(Optional) Software Engineering Case Study: Identifying Class Operations in the ATM System
Wrap-Up
Arrays
Introduction
Arrays
Declaring and Allocating Arrays
Examples Using Arrays
Allocating an Array
Initializing the Values in an Array
Summing the Elements of an Array
Using Arrays to Analyze Survey Results
Using Bar Charts to Display Array Data Graphically
Using the Elements of an Array as Counters
Case Study: Card Shuffling and Dealing Simulation
Passing an Array to a Method
For Each...Next Repetition Statement
GradeBook Case Study: Using an Array to Store Grades
Sorting an Array with Method Sort of Class Array
Searching Arrays
Searching an Array with Linear Search
Searching a Sorted Array with Method BinarySearch of Class Array
Rectangular Arrays
GradeBook Case Study: Using a Rectangular Array
Variable-Length Parameter Lists
Jagged Arrays
Changing the Size of an Array at Execution Time: Using the ReDim Statement
Passing Arrays: ByVal vs. ByRef
(Optional) Software Engineering Case Study: Collaboration Among Objects in the ATM System
Wrap-Up
Classes and Objects: A Deeper Look
Introduction
Time Class Case Study
Class Scope
Default and Parameterless Constructors
Time Class Case Study: Overloaded Constructors
Partial Classes
Composition
Using the Me Reference to Access the Current Object
Garbage Collection
Shared Class Members
Const and ReadOnly Members
Object Browser
Time Class Case Study: Creating Class Libraries
(Optional) Software Engineering Case Study: Starting to Program the Classes of the ATM System
Wrap-Up
Object-Oriented Programming: Inheritance
Introduction
Base Classes and Derived Classes
Protected Members
Relationship between Base Classes and Derived Classes
Creating and Using a CommissionEmployee Class
Creating a BasePlusCommissionEmployee Class without Using Inheritance
Creating a CommissionEmployee-BasePlusCommissionEmployee Inheritance Hierarchy
CommissionEmployee-BasePlusCommissionEmployee Inheritance Hierarchy Using Protected Instance Variables
CommissionEmployee-BasePlusCommissionEmployee Inheritance Hierarchy Using Private Instance Variables
Constructors in Derived Classes
Software Engineering with Inheritance
Class Object
Friend Members
Wrap-Up
Object-Oriented Programming: Polymorphism
Introduction
Polymorphic Video Game
Demonstrating Polymorphic Behavior
Abstract Classes and Methods
Case Study: Payroll System Class Hierarchy Using Polymorphism
Creating Abstract Base Class Employee
Creating Concrete Derived Class SalariedEmployee
Creating Concrete Derived Class HourlyEmployee
Creating Concrete Derived Class CommissionEmployee
Creating Indirect Concrete Derived Class BasePlusCommissionEmployee
Demonstrating Polymorphic Processing, Expression TypeOf...Is, TryCast and Downcasting
Summary of the Allowed Assignments between Base Class and Derived Class Variables
NotOverridable Methods and NotInheritable Classes
Case Study: Creating and Using Interfaces
Developing an IPayable Hierarchy
Declaring Interface IPayable
Creating Class Invoice
Modifying Class Employee to Implement Interface IPayable
Modifying Class SalariedEmployee for Use in the IPayable Hierarchy
Using Interface IPayable to Process Invoices and Employees Polymorphically
Common Interfaces of the .NET Framework Class Library (FCL)
(Optional) Software Engineering Case Study: Incorporating Inheritance and Polymorphism into the ATM System
Wrap-Up
Exception Handling
Introduction
Exception Handling Overview
Example: Divide by Zero Without Exception Handling
Example: Handling DivideByZeroExceptions and FormatExceptions
Enclosing Code in a Try Block
Catching Exceptions
Uncaught Exceptions
Termination Model of Exception Handling
Flow of Control When Exceptions Occur
.NET Exception Hierarchy
Classes ApplicationException and SystemException
Determining Which Exceptions a Method Throws
Finally Block
Exception Properties
User-Defined Exception Classes
Wrap-Up
Graphical User Interface Concepts: Part I
Introduction
Windows Forms
Event Handling
A Simple Event-Driven GUI
Another Look at the Visual Studio Generated Code
Delegates and the Event-Handling Mechanism
Other Ways to Create Event Handlers
Locating Event Information
Control Properties and Layout
Labels, TextBoxes and Buttons
GroupBoxes and Panels
CheckBoxes and RadioButtons
PictureBoxes
ToolTips
NumericUpDown Control
Mouse-Event Handling
Keyboard-Event Handling
Wrap-Up
Graphical User Interface Concepts: Part 2
Introduction
Menus
MonthCalendar Control
DateTimePicker Control
LinkLabel Control
ListBox Control
CheckedListBox Control
ComboBox Control
TreeView Control
ListView Control
TabControl Control
Multiple Document Interface (MDI) Windows
Visual Inheritance
User-Defined Controls
Wrap-Up
Multithreading
Introduction
Thread States: Life Cycle of a Thread
Thread Priorities and Thread Scheduling
Creating and Executing Threads
Thread Synchronization and Class Monitor
Producer/Consumer Relationship without Thread Synchronization
Producer/Consumer Relationship with Thread Synchronization
Producer/Consumer Relationship: Circular Buffer
Multithreading with GUIs
Wrap-Up
Strings, Characters and Regular Expressions
Introduction
Fundamentals of Characters and Strings
String Constructors
String Indexer, Length Property and CopyTo Method
Comparing Strings
Locating Characters and Substrings in Strings
Extracting Substrings from Strings
Concatenating Strings
Miscellaneous String Methods
Class StringBuilder
Length and Capacity Properties, EnsureCapacity Method and Indexer of Class StringBuilder
Append and AppendFormat Methods of Class StringBuilder
Insert, Remove and Replace Methods of Class StringBuilder
Char Methods
Card Shuffling and Dealing Simulation
Regular Expressions and Class RegEx
Regular Expression Example
Validating User Input with Regular Expressions
Regex methods Replace and Split
Wrap-Up
Graphics and Multimedia
Introduction
Drawing Classes and the Coordinate System
Graphics Contexts and Graphics Objects
Color Control
Font Control
Drawing Lines, Rectangles and Ovals
Drawing Arcs
Drawing Polygons and Polylines
Advanced Graphics Capabilities
Introduction to Multimedia
Loading, Displaying and Scaling Images
Animating a Series of Images
Windows Media Player
Microsoft Agent
Wrap-Up
Files and Streams
Introduction
Data Hierarchy
Files and Streams
Classes File and Directory
Creating a Sequential-Access Text File
Reading Data from a Sequential-Access Text File
Case Study: A Credit-Inquiry Program
Serialization
Creating a Sequential-Access File Using Object Serialization
Reading and Deserializing Data from a Sequential-Access Text File
Wrap-Up
Extensible Markup Language (XML)
Introduction
XML Basics
Structuring Data
XML Namespaces
Document Type Definitions (DTDs)
W3C XML Schema Documents
(Optional) Extensible Stylesheet Language and XSL Transformations
(Optional) Document Object Model (DOM)
(Optional) Schema Validation with Class XmlReader
(Optional) XSLT with Class XslCompiledTransform
Wrap-Up
Web Resources
Database, SQL and ADO.NET
Introduction
Relational Databases
Relational Database Overview: Books Database
SQL
Basic Select Query
Where Clause
Order by Clause
Merging Data from Multiple Tables: Inner Join
Insert Statement
Update Statement
Delete Statement
ADO.NET Object Model
Programming with ADO.NET: Extracting Information from a Database
Displaying a Database Table in a DataGridView
How Data Binding Works
Querying the Books Database
Programming with ADO.NET: Address Book Case Study
Using a DataSet to Read and Write XML
Wrap-Up
Web Resources
ASP.NET 2.0, Web Forms and Web Controls
Introduction
Simple HTTP Transactions
Multitier Application Architecture
Creating and Running a Simple Web-Form Example
Examining an ASPX File
Examining a Code-Behind File
Relationship Between an ASPX File and a Code-Behind File
How the Code in an ASP.NET Web Page Executes
Examining the XHTML Generated by an ASP.NET Application
Building an ASP.NET Web Application
Web Controls
Text and Graphics Controls
AdRotator Control
Validation Controls
Session Tracking
Cookies
Session Tracking with HttpSessionState
Case Study: Connecting to a Database in ASP.NET
Building a Web Form That Displays Data from a Database
Modifying the Code-Behind File for the Guestbook Application
Case Study: Secure Books Database Application
Examining the Completed Secure Books Database Application
Creating the Secure Books Database Application
Wrap-Up
Web Resources
Web Services
Introduction
.NET Web Services Basics
Creating a Web Service in Visual Web Developer
Determining a Web Service's Functionality
Testing a Web Service's Methods
Building a Client to Use a Web Service
Simple Object Access Protocol (SOAP)
Publishing and Consuming Web Services
Defining the HugeInteger Web Service
Building a Web Service in Visual Web Developer
Deploying the HugeInteger Web Service
Creating a Client to Consume the HugeInteger Web Service
Consuming the HugeInteger Web Service
Session Tracking in Web Services
Creating a Blackjack Web Service
Consuming the Blackjack Web Service
Using Web Forms and Web Services
Adding Data Components to a Web Service
Creating a Web Form to Interact with the Airline Reservation Web Service
User-Defined Types in Web Services
Wrap-Up
Web Resources
Networking: Streams-Based Sockets and Datagrams
Introduction
Connection-Oriented vs. Connectionless Communication
Protocols for Transporting Data
Establishing a Simple TCP Server Using Stream Sockets
Establishing a Simple TCP Client Using Stream Sockets
Client/Server Interaction with Stream-Socket Connections
Connectionless Client/Server Interaction with Datagrams
Client/Server Tic-Tac-Toe Using a Multithreaded Server
WebBrowser Class
.NET Remoting
Wrap-Up
Data Structures
Introduction
Primitive-Type Structures; Boxing and Unboxing
Self-Referential Classes
Linked Lists
Stacks
Queues
Trees
Binary Search Tree of Integer Values
Binary Search Tree of IComparable Objects
Wrap-Up
Generics
Introduction
Motivation for Generic Methods
Generic Method Implementation
Type Constraints
Overloading Generic Methods
Generic Classes
Notes on Generics and Inheritance
Wrap-Up
Collections
Introduction
Collections Overview
Class Array and Enumerators
Non-Generic Collections
Class ArrayList
Class Stack
Class Hashtable
Generic Collections
Generic Class SortedDictionary
Generic Class LinkedList
Synchronized Collections
Wrap-Up
Operator Precedence Chart
Number Systems
Introduction
Abbreviating Binary Numbers as Octal and Hexadecimal Numbers
Converting Octal and Hexadecimal Numbers to Binary Numbers
Converting from Binary, Octal or Hexadecimal to Decimal
Converting from Decimal to Binary, Octal or Hexadecimal
Negative Binary Numbers: Two's Complement Notation
Using the Visual Studio 2005 Debugger
Introduction
Breakpoints and the Continue Command
The Locals and Watch Windows
Controlling Execution Using the Step Into, Step Over, Step Out and Continue Commands
Other Features
Edit and Continue
Exception Assistant
Just My Code Debugging
Other New Debugger Features
Wrap-Up
ASCII Character Set
Unicode
Introduction
Unicode Transformation Formats
Characters and Glyphs
Advantages/Disadvantages of Unicode
Unicode Consortium's Web Site
Using Unicode
Character Ranges
Introduction to XHTML: Part I
Introduction
Editing XHTML
First XHTML Example
W3C XHTML Validation Service
Headers
Linking
Images
Special Characters and More Line Breaks
Unordered Lists
Nested and Ordered Lists
Web Resources
Introduction to XHTML: Part 2
Introduction
Basic XHTML Tables
Intermediate XHTML Tables and Formatting
Basic XHTML Forms
More Complex XHTML Forms
Internal Linking
Creating and Using Image Maps
meta Elements
frameset Element
Nested framesets
Web Resources
XHTML Special Characters
XHTML Colors
ATM Case Study Code
ATM Case Study Implementation
Class ATM
Class Screen
Class Keypad
Class CashDispenser
Class DepositSlot
Class Account
Class BankDatabase
Class Transaction
Class BalanceInquiry
Class Withdrawal
Class Deposit
Module ATMCaseStudy
Wrap-Up
UML 2: Additional Diagram Types
Introduction
Additional Diagram Types
Primitive Types
Index