|
Visual Basic 2005 in a Nutshell 3rd Edition
When Microsoft made Visual Basic into an object-oriented
programming language, millions of VB developers resisted the
change to the .NET platform. Now, after integrating
feedback from their customers and creating Visual Basic
2005, Microsoft finally has the right carrot. Visual Basic
2005 offers the power of the .NET platform,
yet restores the
speed and convenience of Visual Basic. Accordingly, we've
revised the classic in a Nutshell guide to the Visual Basic
language to cover the Visual Basic 2005 version and all of
its new features.
Unlike other books on the subject, Visual Basic 2005 in a
Nutshell, 3rd Edition doesn't assume you're a novice. It's
a detailed, professional reference to the Visual Basic
language-a reference that you can use to jog your memory
about a particular language element or parameter. It'll
also come in handy when you want to make sure that there
isn't some "gotcha" you've overlooked with a particular
language feature.
The book is divided into three major parts: Part I
introduces the main features and concepts behind Visual
Basic programming; Part II thoroughly details all the
functions, statements, directives, objects, and object
members that make up the Visual Basic language; and Part III
contains a series of helpful appendices. Some of the new
features covered include Generics, a convenient new library
called My Namespace, and the operators used to manipulate
data in Visual Basic.
No matter how much experience you have programming with
Visual Basic, you want Visual Basic 2005 in a Nutshell, 3rd
Edition close by, both as a standard reference guide and as
a tool for troubleshooting and identifying programming
problems.
Chapter 1
Preface
I. The Basics
1. Introduction
Why Visual Basic .NET?
What Is Visual Basic .NET?
What Can You Do with Visual Basic .NET?
Versions of Visual Basic for .NET
2. The .NET Framework: General Concepts
Common Language Runtime
Managed Code
Namespaces
Types and Objects
Assemblies
The Framework Class Library
Application Deployment
The .NET Framework and Visual Basic
3. Introduction to Object-Oriented Programming
Principles of Object-Oriented Programming
OOP Development in Visual Basic
4. Variables and Data Types
Data Types
Variables
Constants
Enumerations
Arrays
Collections
Parameters and Arguments
5. Operators
Arithmetic Operators
Concatenation Operators
Logical and Bitwise Operators
Assignment Operators
Comparison Operators
Object Operators
Operator Overloading
Operator Precedence
6. Program Structure
Visual Studio Application Types
Referencing Components and Classes
Application Entry Points
Code File Contents
The Structure of a Visual Basic Program
7. The .NET Framework Class Library
The System Namespace
The System.Collections Namespace
The System.Data Namespace
The System.IO Namespace
The System.Text.RegularExpressions Namespace
The System.Windows.Forms Namespace
Other Namespaces
8. Delegates and Events
Delegates
Events and Event Binding
9. Attributes
Syntax and Use
Defining a Custom Attribute
Using a Custom Attribute
10. Generics
What Are Generics?
Type Parameters
Multiple Type Parameters
Constraints
Multiple Constraints
Accessing Type Parameter Members
Generic Methods
Nested Generic Types
Overloaded Types and Members
11. Error Handling in Visual Basic
Error Detection and Error Handling
Runtime Error Handling
Dealing with Logic Errors
Error Constants
II. Reference
12. The Language Reference
13. The `My' Reference
III. Appendixes
A. Language Elements by Category
B. Namespace Hierarchy
C. Constants and Enumerations
D. What's New and Different in Visual Basic .NET 2002
E. What's New and Different in Visual Basic .NET 2003
F. What's New and Different in Visual Basic 2005
G. VB 6 Language Elements No Longer Supported
H. The Visual Basic Command-Line Compiler
Index
|