Book description
Appropriate for all basic-to-intermediate level courses in Visual Basic 2012 programming. Visual Basic 2012 How to Program, Sixth Edition is also appropriate for anyone interested in learning programming with Visual Basic 2012.
Created by world-renowned programming instructors Paul and Harvey Deitel, Visual Basic 2012 How to Program, Sixth Edition introduces all facets of the Visual Basic 2012 language through a hands-on approach with hundreds of working programs. This book has been thoroughly updated to reflect the major innovations Microsoft has incorporated in Visual Basic 2012; all discussions and sample code have been carefully audited against the newest Visual Basic language specification. The Sixth Edition is updated to Visual Studio 2012 and includes new chapters on Windows 8 UI app development, Windows 8 graphics/multimedia, Windows Phone 8 app development and Windows Azure.
Readers begin by getting comfortable with
the free Visual Basic Express 2012 IDE and basic VB syntax. Next,
they build their skills one step at a time, mastering control
structures, classes, objects, methods, variables, arrays, and the
core techniques of object-oriented programming. With this strong
foundation in place, the Deitels introduce more sophisticated
techniques, including inheritance, polymorphism, exception
handling, strings, GUI's, data structures, generics, and
collections. Throughout, the authors show developers how to make
the most of Microsoft’s Visual Studio tools. A series of
appendices provide essential programming reference material on
various topics.
Table of contents
- Title Page
- Copyright Page
- Dedication Page
- Trademarks
- Brief Contents
- Contents
- Preface
- Before You Begin
-
1 Introduction to Computers, the Internet and Visual Basic
- 1.1 Introduction
- 1.2 Hardware and Moore’s Law
- 1.3 Data Hierarchy
- 1.4 Computer Organization
- 1.5 Machine Languages, Assembly Languages and High-Level Languages
- 1.6 Object Technology
- 1.7 Internet and World Wide Web
- 1.8 Visual Basic
- 1.9 Microsoft’s .NET
- 1.10 Microsoft’s Windows® Operating System
- 1.11 Windows Phone 8 for Smartphones
- 1.12 Windows Azure™ and Cloud Computing
- 1.13 Visual Studio Integrated Development Environment
- 1.14 Test-Driving the Visual Basic Advanced Painter App in Visual Studio 2012
- 2 Dive Into® Visual Studio Express 2012 for Windows Desktop
- 3 Introduction to Visual Basic Programming
-
4 Introduction to Problem Solving and Control Statements
- 4.1 Introduction
- 4.2 Algorithms
- 4.3 Pseudocode Algorithm
- 4.4 Control Structures
- 4.5 If...Then Selection Statement
- 4.6 If...Then...Else Selection Statement
- 4.7 Nested If...Then...Else Selection Statements
- 4.8 Repetition Statements
- 4.9 Compound Assignment Operators
- 4.10 Formulating Algorithms: Counter-Controlled Repetition
- 4.11 Formulating Algorithms: Nested Control Statements
- 4.12 Using the Debugger: Locating a Logic Error
- 4.13 Wrap-Up
-
5 Problem Solving and Control Statements: Part 2
- 5.1 Introduction
- 5.2 For...Next Repetition Statement
- 5.3 Examples Using the For...Next Statement
- 5.4 App: Interest Calculator
- 5.5 Formulating Algorithms: Nested Repetition Statements
- 5.6 Select...Case Multiple-Selection Statement
- 5.7 Do...Loop While and Do...Loop Until Repetition Statements
- 5.8 Using Exit to Terminate Repetition Statements
- 5.9 Using Continue in Repetition Statements
- 5.10 Logical Operators
- 5.11 App: Dental Payment Calculator
- 5.12 Wrap-Up
-
6 Methods
- 6.1 Introduction
- 6.2 Classes and Methods
- 6.3 Subroutines: Methods That Do Not Return a Value
- 6.4 Functions: Methods That Return a Value
- 6.5 Implicit Argument Conversions
- 6.6 Option Strict and Data-Type Conversions
- 6.7 Passing Arguments: Pass-by-Value vs. Pass-by-Reference
- 6.8 Scope of Declarations
- 6.9 Case Study: Random-Number Generation
- 6.10 Case Study: A Game of Chance
- 6.11 Method Overloading
- 6.12 Optional Parameters
- 6.13 Using the Debugger: Debugging Commands
- 6.14 Wrap-Up
-
7 Arrays
- 7.1 Introduction
- 7.2 Arrays
- 7.3 Declaring and Allocating Arrays
- 7.4 Initializing the Values in an Array
- 7.5 Summing the Elements of an Array
- 7.6 Using Arrays to Analyze Survey Results
- 7.7 Die-Rolling App with an Array of Counters
- 7.8 Case Study: Flag Quiz
- 7.9 Passing an Array to a Method
- 7.10 For Each...Next Repetition Statement
- 7.11 Sorting an Array with Method Sort of Class Array
- 7.12 Searching an Array with Linear Search
- 7.13 Searching a Sorted Array with Array Method BinarySearch
- 7.14 Rectangular Arrays
- 7.15 Case Study: Maintaining Grades Using a Rectangular Array
- 7.16 Resizing an Array with the ReDim Statement
- 7.17 Wrap-Up
- 8 Files
-
9 Object-Oriented Programming: Classes and Objects
- 9.1 Introduction
- 9.2 Classes, Objects, Methods and Instance Variables
- 9.3 Account Class
- 9.4 Value Types and Reference Types
- 9.5 Case Study: Card Shuffling and Dealing Simulation
- 9.6 Case Study: Time Class
- 9.7 Class Scope
- 9.8 Object Initializers
- 9.9 Auto-Implemented Properties
- 9.10 Using Me to Access the Current Object
- 9.11 Garbage Collection
- 9.12 Shared Class Members
- 9.13 Const and ReadOnly Fields
- 9.14 Shared Methods and Class Math
- 9.15 Object Browser
- 9.16 Wrap-Up
-
10 Object-Oriented Programming: Inheritance and Polymorphism
- 10.1 Introduction
- 10.2 Base Classes and Derived Classes
- 10.3 Business Case Study: Commission Employees Class Hierarchy
- 10.4 Constructors in Derived Classes
- 10.5 Protected Members
- 10.6 Introduction to Polymorphism: A Polymorphic Video Game
- 10.7 Abstract Classes and Methods
- 10.8 Case Study: Payroll System Class Hierarchy Using Polymorphism
- 10.9 Online Case Study: Interfaces
- 10.10 Wrap-Up
- 11 Introduction to LINQ
-
12 Databases and LINQ
- 12.1 Introduction
- 12.2 Relational Databases
- 12.3 A Books Database
- 12.4 LINQ to Entities and the ADO.NET Entity Framework
- 12.5 Querying a Database with LINQ
- 12.6 Dynamically Binding Query Results
- 12.7 Retrieving Data from Multiple Tables with LINQ
- 12.8 Creating a Master/Detail View App
- 12.9 Address Book Case Study
- 12.10 Tools and Web Resources
- 12.11 Wrap-Up
-
13 Web App Development with ASP.NET
- 13.1 Introduction
- 13.2 Web Basics
- 13.3 Multitier App Architecture
- 13.4 Your First Web App
- 13.5 Standard Web Controls: Designing a Form
- 13.6 Validation Controls
- 13.7 Session Tracking
- 13.8 Case Study: Database-Driven ASP.NET Guestbook
- 13.9 Online Case Study: ASP.NET AJAX
- 13.10 Online Case Study: Password-Protected Books Database App
- 13.11 Wrap-Up
-
14 Windows Forms GUI: A Deeper Look
- 14.1 Introduction
- 14.2 Controls and Components
- 14.3 Creating Event Handlers
- 14.4 Control Properties and Layout
- 14.5 GroupBoxes and Panels
- 14.6 ToolTips
- 14.7 Mouse-Event Handling
- 14.8 Keyboard-Event Handling
- 14.9 Menus
- 14.10 MonthCalendar Control
- 14.11 DateTimePicker Control
- 14.12 LinkLabel Control
- 14.13 ListBox and CheckedListBox Controls
- 14.14 Multiple Document Interface (MDI) Windows
- 14.15 Visual Inheritance
- 14.16 Animation with the Timer Component
- 14.17 Wrap-Up
-
15 Graphics and Multimedia
- 15.1 Introduction
- 15.2 Drawing Classes and the Coordinate System
- 15.3 Graphics Contexts and Graphics Objects
- 15.4 Colors
- 15.5 Fonts
- 15.6 Drawing Lines, Rectangles and Ovals
- 15.7 Drawing Arcs
- 15.8 Drawing Polygons and Polylines
- 15.9 Additional Brush Types
- 15.10 Loading, Displaying and Scaling Images
- 15.11 Windows Media Player
- 15.12 Printing
- 15.13 Wrap-Up
- 16. Exception Handling: A Deeper Look
-
17. Strings and Characters: A Deeper Look
- 17.1 Introduction
- 17.2 Fundamentals of Characters and Strings
- 17.3 String Constructors
- 17.4 String Indexer, Length Property and CopyTo Method
- 17.5 Comparing Strings
- 17.6 Locating Characters and Substrings in Strings
- 17.7 Extracting Substrings from Strings
- 17.8 Concatenating Strings
- 17.9 Miscellaneous String Methods
- 17.10 Class StringBuilder
- 17.11 Length and Capacity Properties, EnsureCapacity Method and Indexer of Class StringBuilder
- 17.12 Append and AppendFormat Methods of Class StringBuilder
- 17.13 Insert, Remove and Replace Methods of Class StringBuilder
- 17.14 Char Methods
- 17.15 Introduction to Regular Expression Processing
- 17.16 Wrap-Up
-
18. Files and Streams: A Deeper Look
- 18.1 Introduction
- 18.2 Data Hierarchy
- 18.3 Files and Streams
- 18.4 Classes File and Directory
- 18.5 Creating a Sequential-Access Text File
- 18.6 Reading Data from a Sequential-Access Text File
- 18.7 Case Study: A Credit-Inquiry Program
- 18.8 Serialization
- 18.9 Creating a Sequential-Access File Using Object Serialization
- 18.10 Reading and Deserializing Data from a Serialized Sequential-Access File
- 18.11 Wrap-Up
-
19. XML and LINQ to XML
- 19.1 Introduction
- 19.2 XML Basics
- 19.3 Structuring Data
- 19.4 XML Namespaces
- 19.5 Document Type Definitions (DTDs)
- 19.6 W3C XML Schema Documents
- 19.7 Extensible Stylesheet Language and XSL Transformations
- 19.8 LINQ to XML: Document Object Model (DOM)
- 19.9 LINQ to XML: XML Axis Properties
- 19.10 LINQ to XML: XML Literals and Embedded Expressions
- 19.11 XSLT with Class XslCompiledTransform
- 19.12 Wrap-Up
- 20. Windows 8 UI and XAML
- 21. Windows 8 Graphics and Multimedia
-
22. Building a Windows Phone 8 App
- 22.1 Introduction
- 22.2 Downloading the Windows Phone 8 SDK
- 22.3 Tip Calculator App Introduction
- 22.4 Test-Driving the Tip Calculator App
- 22.5 Tip Calculator Technologies Overview
- 22.6 Building the App’s GUI
- 22.7 Adding Functionality to the App with Visual Basic
- 22.9 Windows Phone Dev Center
- 22.10 Selling Your Apps in the Windows Phone Marketplace
- 22.11 Other Popular Mobile App Platforms
- 22.12 Developer Documentation
- 22.13 Additional Windows Phone 8 Resources
- 22.14 Wrap-Up
- 23. Asynchronous Programming with Async and Await
- 24. Web App Development with ASP.NET: A Deeper Look
-
25. Web Services
- 25.1 Introduction
- 25.2 WCF Services Basics
- 25.3 HTTP get and post Requests
- 25.4 Representational State Transfer (REST)
- 25.5 JavaScript Object Notation (JSON)
- 25.6 Publishing and Consuming REST-Based XML Web Services
- 25.7 Publishing and Consuming REST-Based JSON Web Services
- 25.8 Equation Generator: Returning User-Defined Types
- 25.9 Wrap-Up
-
26. Building a Windows Azure™ Cloud Computing App
- 26.1 Introduction
- 26.2 Installing the Windows Azure SDK for Visual Studio 2012
- 26.3 Windows Azure Cloud Services Accounts
- 26.4 Favorite Twitter Searches: Introduction
- 26.5 Favorite Twitter Searches: Test-Drive
- 26.6 Favorite Twitter Searches: Technologies Overview
- 26.7 Favorite Twitter Searches: Code
- 26.8 Security, Privacy and Reliability
- 26.9 Microsoft Windows Azure Resources
- 26.10 Microsoft Windows Azure Code Samples
- 26.11 Additional Web Resources
- 26.12 Wrap-Up
-
27. Windows Presentation Foundation GUI
- 27.1 Introduction
- 27.2 Windows Presentation Foundation
- 27.3 Declarative GUI Programming Using XAML
- 27.4 Creating a WPF App
- 27.5 Laying Out Controls
- 27.6 Event Handling
- 27.7 Commands and Common Application Tasks
- 27.8 WPF GUI Customization
- 27.9 Using Styles to Change the Appearance of Controls
- 27.10 Customizing Windows
- 27.11 Defining a Control’s Appearance with Control Templates
- 27.12 Data-Driven GUIs with Data Binding
- 27.13 Wrap-Up
- 28. WPF Graphics and Multimedia
- 29. Data Structures and Generic Collections
-
30. ATM Case Study, Part 1: Object-Oriented Design with the UML
- 30.1 Introduction
- 30.2 Examining the ATM Requirements Document
- 30.3 Identifying the Classes in a Requirements Document
- 30.4 Identifying Class Attributes
- 30.5 Identifying Objects’ States and Activities in the ATM System
- 30.6 Identifying Class Operations
- 30.7 Indicating Collaboration Among Objects
- 30.8 Wrap-Up
- 31. ATM Case Study, Part 2: Implementing an ObjectOriented Design
- A Operator Precedence Chart
- B Primitive Types
-
C Number Systems
- C.1 Introduction
- C.2 Abbreviating Binary Numbers as Octal and Hexadecimal Numbers
- C.3 Converting Octal and Hexadecimal Numbers to Binary Numbers
- C.4 Converting from Binary, Octal or Hexadecimal to Decimal
- C.5 Converting from Decimal to Binary, Octal or Hexadecimal
- C.6 Negative Binary Numbers: Two’s-Complement Notation
- D ASCII Character Set
- E Unicode®
- F Creating Console Applications
- Index
Product information
- Title: Visual Basic® 2012 How to Program, Sixth Edition
- Author(s):
- Release date: May 2013
- Publisher(s): Pearson
- ISBN: 9780133407099
You might also like
book
Visual Basic 2012 Programmer's Reference
The comprehensive guide to Visual Basic 2012 Microsoft Visual Basic (VB) is the most popular programming …
book
Professional Visual Basic 2012 and .NET 4.5 Programming
Explore Visual Basic 2012 and .NET 4.5 with this fully updated resource After a quick review …
book
Beginning Visual Basic 2015
Learn Visual Basic step by step and start programming right away Beginning Visual Basic 2015 is …
book
Visual Basic 2015 Unleashed
Using Visual Basic 2015, developers can build cutting-edge applications that run practically anywhere: on Windows desktops, …