Programming Visual Basic 2008
Build .NET 3.5 Applications with Microsoft's RAD Tool for Business
Publisher: O'Reilly Media
Release Date: December 2008
Pages: 784
Read on Safari with a 10-day trial
Start your free trial now Buy on AmazonWhere’s the cart? Now you can get everything on Safari. To purchase books, visit Amazon or your favorite retailer. Questions? See our FAQ or contact customer service:
1-800-889-8969 / 707-827-7019
support@oreilly.com
Written in a lively and engaging style by a developer who's grown up with Visual Basic, including both VB 6 and VB .NET, this hands-on guide addresses the core topics of the new VB, from basic to complex, with plenty of code examples.
Programming Visual Basic 2008 also examines .NET programming from the application level with a chapter-by-chapter plan for developing, documenting, and deploying a full data-driven application. You learn, step-by-step, how to build and deploy a library management system, complete with patron, inventory, and barcode support.
The book's broad range of topics include:
- VB language and its syntax
- An overview of the .NET Framework
- Object-oriented development in VB and .NET
- Generic objects, collections, and nullable types
- Design and management of software projects
- Integrating desktop features with Windows Forms
- Database design with SQL Server 2008
- Database interface design with ADO.NET
- The new LINQ feature, and how to use it within VB and .NET
- Embedding XML within application source code
- Encryption and authentication in .NET
- Interacting with data stored in files and directories
- Web development using ASP.NET
- Deploying an application to a user's workstation
- And much more
Programming Visual Basic 2008 is ideal for VB 6 programmers who are ready to move to .NET, as well as VB.NET programmers who wish to improve their project-focused software development skills. Programming novices and developers coming from other languages will find the book valuable because of its language instruction and project design knowledge.
Once you finish the book, you will have a firm grasp of VB 2008's core concepts and language elements, and understand how to build VB projects as they were intended -- as complete, cohesive solutions.
Table of Contents
-
Chapter 1 Introducing .NET
-
Before .NET
-
Back to Introducing .NET
-
The .NET Object
-
The Parts of the .NET Framework
-
From Source Code to EXE
-
What About Visual Studio and Visual Basic?
-
Visual Studio 2008
-
Summary
-
Project
-
-
Chapter 2 Introducing Visual Basic
-
The History of the Visual Basic Revolution
-
Visual Basic from the Inside Out
-
The Basics of Logic and Data
-
Data Types and Variables
-
Intermission
-
Comments
-
Option Statements
-
Basic Operators
-
Using Functions and Subroutines
-
Conditions
-
Loops
-
Creating Your Own Procedures
-
Other Flow Control Features
-
Events and Event Handlers
-
Namespaces
-
The My Namespace
-
Summary
-
Project
-
-
Chapter 3 Introducing the Project
-
The Library Project
-
The Needs of the Users
-
The Life of a Project
-
Summary
-
Project
-
-
Chapter 4 Designing the Database
-
Relational Databases
-
SQL Server 2005
-
SQL
-
Using Databases in Visual Basic
-
Documenting the Database
-
Summary
-
Project
-
-
Chapter 5 .NET Assemblies
-
What Is an Assembly?
-
What's Inside an Assembly?
-
Assemblies and Applications
-
The My Namespace and Assemblies
-
Directives and Assemblies
-
Summary
-
Project
-
-
Chapter 6 Data and Data Types
-
The Nature of Computer Data
-
Data in .NET
-
Visual Basic Data Types
-
Literals
-
Constants
-
Enumerations
-
Variables
-
Variable and Constant Naming Conventions
-
Local Type Inference
-
Operators
-
Static Variables
-
Arrays
-
Nullable Types
-
Common Visual Basic Functions
-
Summary
-
Project
-
-
Chapter 7 Windows Forms
-
Inside a Windows Application
-
Windows in .NET
-
Making Forms Useful
-
Summary
-
Project
-
-
Chapter 8 Classes and Inheritance
-
Object-Oriented Programming Concepts
-
OOP in Visual Basic and .NET
-
Related Issues
-
Summary
-
Project
-
-
Chapter 9 Functional Programming
-
Lambda Expressions
-
Object Initializers
-
Error Handling in Visual Basic
-
The Nature of Errors in Visual Basic
-
Unstructured Error Handling
-
Structured Error Handling
-
Unhandled Errors
-
Managing Errors
-
Summary
-
Project
-
-
Chapter 10 ADO.NET
-
What Is ADO.NET?
-
Overview of ADO.NET
-
Data Sets Versus No Data Sets
-
Connecting to SQL Server with Visual Studio
-
Interacting with SQL Server in Code
-
Database Transactions
-
ADO.NET Entity Framework
-
Summary
-
Project
-
-
Chapter 11 Security
-
Security Features in .NET
-
Cryptography and Encryption
-
Encryption in .NET
-
Other Security Features
-
Summary
-
Project
-
-
Chapter 12 Overloads and Extensions
-
What Is Operator Overloading?
-
What Can You Overload?
-
Other Operator Overloading Issues
-
Extension Methods
-
Summary
-
Project
-
-
Chapter 13 XML
-
What Is XML?
-
The XML Rule
-
XML Content
-
Using XML in .NET: The Old Way
-
Using XML in .NET: The New Way
-
Summary
-
Project
-
-
Chapter 14 Application Settings
-
A Short History of Settings
-
Settings in Visual Basic 2008
-
Summary
-
Project
-
-
Chapter 15 Files and Directories
-
Traditional Visual Basic File Management
-
Manipulating Files Through Streams
-
File Management with the My Namespace
-
Summary
-
Project
-
-
Chapter 16 Generics
-
What Are Generics?
-
Variations of Generic Declaration
-
Summary
-
Project
-
-
Chapter 17 LINQ
-
What Is LINQ?
-
Anonymous Types
-
LINQ to Objects
-
Basic Query Expressions
-
Converting Results to Other Forms
-
Aggregate Queries
-
Advanced Query Expressions
-
LINQ to XML
-
LINQ for ADO.NET-Related Data
-
Deferred Execution
-
Summary
-
Project
-
-
Chapter 18 User Interface
-
Overview of GDI+
-
Selecting a Canvas
-
Choosing Pens and Brushes
-
Flowing Text from the Font
-
Imagining Images
-
Exposing Your True Artist
-
Paths: Drawings on Macro-Vision
-
Keeping It Regional
-
Twisting and Turning with Transformations
-
Enhancing Controls Through Owner Draw
-
Windows Presentation Foundation
-
Enhancing Classes with Attributes
-
Summary
-
Project
-
-
Chapter 19 Localization and Globalization
-
Defining Globalization and Localization
-
Resource Files
-
The My.Resources Object
-
Localizing Forms Within Visual Studio
-
Adding Resources Outside Visual Studio
-
Manually Compiling Resources
-
Other Localization Features
-
Summary
-
Project
-
-
Chapter 20 Printing
-
Printing in Windows
-
Printing in .NET
-
Printing a Document
-
Print Preview
-
Counting and Numbering Pages
-
Printing in "Raw" Mode
-
Summary
-
Project
-
-
Chapter 21 Reporting
-
Report Options in .NET
-
Using Reporting Controls in .NET
-
Summary
-
Project
-
-
Chapter 22 Licensing Your Application
-
Software Licensing Options
-
License Agreements
-
Obfuscation
-
The Library Licensing System
-
Summary
-
Project
-
-
Chapter 23 Web Development
-
How the Internet Works
-
Programming the Internet
-
ASP.NET Features
-
Trying Out ASP.NET
-
More About Events
-
State and View State
-
Data Validation
-
Database Integration
-
Windows Communication Foundation
-
Summary
-
Project
-
-
Chapter 24 Adding Online Help
-
Windows Online Help Options
-
Designing HTML Help
-
Accessing HTML Help
-
Summary
-
Project
-
-
Chapter 25 Deployment
-
What's Involved in Deployment?
-
Deployment Methods Within Visual Studio
-
Summary
-
Project
-
-
Chapter 26 Project Complete
-
The Library Project
-
Visual Basic Flexibility
-
The Programming Mindset
-
Summary
-
-
Appendix Installing the Software
-
Download the Software
-
Install the Software
-
Install Project Templates
-
Install Code Snippets
-
Bar Code Support
-
-
Appendix Software License Agreement
-
Terms of Use
-
-
Colophon