
Table of Contents
| Copyright














Chapter 1.
Visual Studio

Section 1.1.
How do I do that?

Section 1.2.
Code, Debug, and Continue Without Restarting Your Application

Section 1.3.
Look Inside an Object While Debugging

Section 1.4.
Diagnose and Correct Errorson the Fly

Section 1.5.
Rename All Instances of Any Program Element

Section 1.6.
Use IntelliSense Filteringand AutoCorrect

Section 1.7.
Edit Control Properties in Place

Section 1.8.
Call Methods at Design Time

Section 1.9.
Insert Boilerplate CodeUsing Snippets

Section 1.10.
Create XML Documentation for Your Code

Chapter 2.
The Visual Basic Language

Section 2.1.
Use the My Objects to Program Common Tasks

Section 2.2.
Get Application Information

Section 2.3.
Use Strongly Typed Resources

Section 2.4.
Use Strongly Typed Configuration Settings

Section 2.5.
Build Typesafe Generic Classes

Section 2.6.
Make Simple Data Types Nullable

Section 2.7.
Use Operators with Custom Objects

Section 2.8.
Split a Class into Multiple Files

Section 2.9.
Extend the My Namespace

Section 2.10.
Skip to the Next Iteration of a Loop

Section 2.11.
Dispose of Objects Automatically

Section 2.12.
Safeguard Properties with Split Accessibility

Section 2.13.
Evaluate Conditions Separately with Short-Circuit Logic

Chapter 3.
Windows Applications

Section 3.1.
Use Office-Style Toolbars

Section 3.2.
Add Any Control to a ToolStrip

Section 3.3.
Add Icons to Your Menu

Section 3.4.
Put the Web in a Window

Section 3.5.
Validate Input While the User Types

Section 3.6.
Create Text Boxes thatAuto-Complete

Section 3.7.
Play a Windows System Sound

Section 3.8.
Play Simple WAV Audio

Section 3.9.
Create a Windows Explorer-like Split Window

Section 3.10.
Take Control of Window Layout

Section 3.11.
Control When Your Application Shuts Down

Section 3.12.
Prevent Your Application from Starting Twice

Section 3.13.
Communicate Between Forms

Section 3.14.
Improve Redraw Speeds for GDI+

Section 3.15.
Handle Asynchronous Tasks Safely

Section 3.16.
Use a Better Data-Bound Grid

Section 3.17.
Format the DataGridView

Section 3.18.
Add Images and Controls to the DataGridView

Chapter 4.
Web Applications

Section 4.1.
Create a Web Application in Visual Studio 2005

Section 4.2.
Administer a Web Application

Section 4.3.
Bind to Data Without Writing Code

Section 4.4.
Bind Web Controls to a Custom Class

Section 4.5.
Display Interactive Tables Without Writing Code

Section 4.6.
Display Records One at a Time

Section 4.7.
Achieve a Consistent Look and Feel with Master Pages

Section 4.8.
Add Navigation to Your Site

Section 4.9.
Easily Authenticate Users

Section 4.10.
Determine How Many People Are Currently Using Your Web Site

Section 4.11.
Use Role-Based Authorization

Section 4.12.
Store Personalized Information

Chapter 5.
Files, Databases, and XML

Section 5.1.
Get Drive Information

Section 5.2.
Get File and Directory Information

Section 5.3.
Copy, Move, and Delete Files

Section 5.4.
Read and Write Files

Section 5.5.
Compress and Decompress Data

Section 5.6.
Collect Statistics on Your Data Connections

Section 5.7.
Batch DataAdapter Commands for Better Performance

Section 5.8.
Bulk-Copy Rows from One Table to Another

Section 5.9.
Write Database-Agnostic Code

Section 5.10.
Use the New XPathDocument and XPathNavigator

Section 5.11.
Edit an XML Document with XPathNavigator

Chapter 6.
.NET 2.0 Platform Services

Section 6.1.
Easily Log Events

Section 6.2.
Ping Another Computer

Section 6.3.
Get Information About a Network Connection

Section 6.4.
Upload and Download Files with FTP

Section 6.5.
Test Group Membership of the Current User

Section 6.6.
Encrypt Secrets for the Current User

Section 6.7.
Unleash the Console

Section 6.8.
Time Your Code

Section 6.9.
Deploy Your Application with ClickOnce
