Print this page Share

Professional Visual Studio 2008

ISBN: 978-0-470-22988-0
1032 pages
July 2008
Professional Visual Studio 2008 (0470229888) cover image


Professional Visual Studio 2008

Microsoft Visual Studio 2008 is the latest version in the ongoing evolution of the Integrated Development Environment (IDE), and this resource examines the diverse facets of the IDE—from common tasks to intricate functions to the powerful tools that accompany the main code editing and design windows. Written by a unique author duo and offering an in-depth look at the powerful and fascinating features and techniques of the IDE, this book explores each aspect of the development life cycle from the perspective of how Visual Studio 2008 can make your life easier.

Each chapter is packed with examples that illustrate uses for various tools, commands, and shortcuts of Visual Studio 2008. You will gradually learn to identify where a feature is used, conclude how you can use it to its fullest potential, and then seamlessly apply that feature to help solve real-world problems.

See More

Table of Contents


Part I: Integrated Development Environment.

Chapter 1: A Quick Tour.

Let’s Get Started.

The Visual Studio IDE.

Chapter 2: The Solution Explorer, Toolbox, and Properties.

The Solution Explorer.

The Toolbox.


Chapter 3: Options and Customizations.

Window Layout.

The Editor Space.

Other Options.

Importing and Exporting Settings.

Chapter 4: Workspace Control.

Command Window.

Immediate Window.

Class View.

Object Browser.

Object Test Bench.

Code View.

Document Outline Tool Window.

Control Outline.

Chapter 5: Find and Replace, and Help.

Introducing Find and Replace.

Find in Files.

Replace in Files.

Incremental Search.

Find Symbol.

Find and Replace Options.

Accessing Help.

The Search Window.

Keeping Favorites.

Customizing Help.

Part II: Getting Started.

Chapter 6: Solutions, Projects, and Items.

Solution Structure.

Solution File Format.

Solution Properties.

Project Types.

Project Files Format.

Project Properties.

Web Site Projects.

Chapter 7: Source Control.

Selecting a Source Control Repository.

Accessing Source Control.

Offline Support for Source Control.

Chapter 8: Forms and Controls.

The Windows Form.

Form Design Preferences.

Adding and Positioning Controls.

Container Controls.

Docking and Anchoring Controls.

Chapter 9: Documentation Using Comments and Sandcastle.

Inline Commenting.

XML Comments.

Using XML Comments.

Sandcastle Documentation Generation Tools.

Task List Comments.

Chapter 10: Project and Item Templates.

Creating Templates.

Extending Templates.

Part III: Languages.

Chapter 11: Generics, Nullable Types, Partial Types, and Methods.


Nullable Types.

Partial Types.

Operator Overloading.

Property Accessibility.

Custom Events.

Chapter 12: Anonymous Types, Extension Methods, and Lambda Expressions.

Object and Array Initialization.

Implicit Typing.

Anonymous Types.

Extension Methods.

Lambda Expressions.

Chapter 13: Language-Specific Features.



Chapter 14: The My Namespace.

What Is the My Namespace?

Using My in Code.

A Namespace Overview.

Your Turn.

Chapter 15: The Languages Ecosystem.

Hitting a Nail with the Right Hammer.

Introducing F#.

Part IV: Coding.

Chapter 16: IntelliSense and Bookmarks.

IntelliSense Explained.

IntelliSense Options.

Extended IntelliSense.

Bookmarks and the Bookmark Window.

Chapter 17: Code Snippets and Refactoring.

Code Snippets Revealed.

Accessing Refactoring Support.

Refactoring Actions.

Chapter 18: Modeling with the Class Designer.

Creating a Class Diagram.

Design Surface.


Class Details.

Properties Window.


Exporting Diagrams.

Code Generation and Refactoring.

PowerToys for the Class Designer.

Chapter 19: Server Explorer.

The Servers Node.

Chapter 20: Unit Testing.

Your First Test Case.

Asserting the Facts.

Initializing and Cleaning Up.

Testing Context.

Managing Large Numbers of Tests.

Part V: Data.

Chapter 21: DataSets and DataBinding.

DataSet Overview.


Working with Data Sources.

Chapter 22: Visual Database Tools.

Database Windows in Visual Studio 2008.

Managing Test Data.

Previewing Data.

Chapter 23: Language Integrated Queries (LINQ).

LINQ Providers.

Old-School Queries.

Query Pieces.

Debugging and Execution.

Chapter 24: LINQ to XML.

XML Object Model.

Creating XML with LINQ.

Querying XML.

Schema Support.

Chapter 25: LINQ to SQL and Entities.


LINQ to Entities.

Chapter 26: Synchronization Services.

Occasionally Connected Applications.

Part VI: Security.

Chapter 27: Security in the .NET Framework.

Key Security Concepts.

Code Access Security.

Role-Based Security.

Chapter 28: Cryptography.

General Principles.


Applying Cryptography.


Chapter 29: Obfuscation.

MSIL Disassembler.


Obfuscating Your Code.


Chapter 30: Client Application Services.

Client Services.

Role Authorization.

User Authentication.


Login Form.

Offline Support.

Chapter 31: Device Security Manager.

Security Configurations.

Device Emulation.

Part VII: Platforms.

Chapter 32: ASP.NET Web Applications.

Web Application vs. Web Site Projects.

Creating Web Projects.

Designing Web Forms.

Web Controls.

Master Pages.

Rich Client-Side Development.

ASP.NET Web Site Administration.

Chapter 33: Office Applications.

Choosing an Office Project Type.

Creating a Document-Level Customization.

Creating an Application Add-In.

Debugging Office Applications.

Deploying Office Applications.

Chapter 34: Mobile Applications.

Getting Started.

The Design Skin.

The Toolbox.


Project Settings.

The Data Source.

Windows Mobile APIs.

Chapter 35: WPF Applications.

Getting Started.

WPF Designer.

Styling Your Application.

Windows Forms Interoperability.

Chapter 36: WCF and WF Applications.

Windows Communication Foundation.

Windows Workflow Foundation.

Chapter 37: Next Generation Web: Silverlight and ASP.NET MVC.



Part VIII: Configuration and Internationalization.

Chapter 38: Configuration Files.

Config Files.

Configuration Schema.

Application Settings.

Referenced Projects with Settings.

Chapter 39: Connection Strings.

Connection String Wizard.

SQL Server Format.

In-Code Construction.

Encrypting Connection Strings.

Chapter 40: Resource Files.

What Are Resources?

Resourcing Your Application.

Satellite Resources.

Accessing Specifics.

Custom Resources.

Part IX: Debugging.

Chapter 41: Using the Debugging Windows.

Code Window.

Breakpoint Window.

Output Window.

Immediate Window.

Watch Windows.

Call Stack.




Memory Windows.


Chapter 42: Debugging with Breakpoints.



Execution Point.

Edit and Continue.

Chapter 43: Creating Debug Proxies and Visualizers.



Advanced Techniques.

Chapter 44: Debugging Web Applications.

Debugging Server-Side ASP.NET Code.

Debugging Client-Side JavaScript.

Debugging Silverlight.


Health Monitoring.

Chapter 45: Advanced Debugging Techniques.

Start Actions.

Debugging with Code.

Debugging Running Applications.

.NET Framework Reference Source.

Multi-Threaded Debugging.

Debugging SQL Server Stored Procedures.

Mixed-Mode Debugging.

Part X: Build and Deployment.

Chapter 46: Upgrading with Visual Studio 2008.

Upgrading from Visual Studio 2005.

Upgrading to .NET Framework v3.5.

Upgrading from Visual Basic 6.

Chapter 47: Build Customization.

General Build Options.

Manual Dependencies.

Visual Basic Compile Page.

C# Build Pages.


Chapter 48: Assembly Versioning and Signing.

Assembly Naming.

Chapter 49: ClickOnce and MSI Deployment.



Chapter 50: Web and Mobile Application Deployment.

Web Application Deployment.

Mobile Application Deployment.

Part XI: Automation.

Chapter 51: The Automation Model.

Introduction to the Automation Model.

The Automation Model and Visual Studio Extensibility.

Development Tools Extensibility (DTE).

A Quick Overview of DTE.

Limitations of the Automation Model.

Chapter 52: Add-Ins.


Add-In Wizard.

The Anatomy of an Add-In.

The Structure of .AddIn Files.

Develop an Add-In.



Shared Add-Ins.

Chapter 53: Macros.

The Anatomy of a Macro.

Macro Explorer.

Macros IDE.

How to Record a Macro.

How to Develop a Macro.

Running a Macro.


Part XII: Visual Studio Team System.

Chapter 54: VSTS: Architect Edition.

Case Study.

Application Designer.

Logical Datacenter Designer.

Deployment Designer.

Settings and Constraints Editor.

System Designer.

Chapter 55: VSTS: Developer Edition.

Code Metrics.

Managed Code Analysis Tool.

C/C++ Code Analysis Tool.

Profiling Tools.

Stand-Alone Profiler.

Application Verifier.

Code Coverage.

Chapter 56: VSTS: Tester Edition.

Web Tests.

Load Tests.

Manual Tests.

Generic Tests.

Ordered Tests.

Test Management.

Chapter 57: VSTS: Database Edition.

SQL-CLR Database Project.

Offline Database Schema.

Data Generation.

Database Unit Testing.

Database Refactoring.

Schema Compare.

Data Compare.

T-SQL Editor.

Power Tools.

Best Practices.

Chapter 58: Team Foundation Server.

Process Templates.

Work Item Tracking.

Excel and Project Integration.

Version Control.

Team Foundation Build.

Reporting and Business Intelligence.

Team Portal.

Team System Web Access.

TFS Automation and Process Customization.


See More

Author Information

Nick Randolph is currently the Chief Development Officer for N Squared Solutions, having recently left his role as lead developer at Intilecta Corporation where he was integrally involved in designing and building that firm ’ s application framework. After graduating with a combined Engineering (Information Technology)/Commerce degree, Nick went on to be nominated as a Microsoft MVP in recognition of his work with the Perth .NET user group and his focus on mobile devices. He is still an active contributor in the device application development space via his blog at http://community.softteq.com/blogs/nick/ and via the Professional Visual Studio web site, http://www.professionalvisualstudio.com/ . Over the past two years, Nick has been invited to present at a variety of events including Tech Ed Australia, MEDC, and Code Camp. He has also authored articles for MSDN Magazine (ANZ edition) and a book entitled Professional Visual Studio 2005 , and has helped judge the 2004, 2005, and 2007 world finals for the Imagine Cup.

David Gardner is a seasoned.NET developer and the Chief Software Architect at Intilecta Corporation. David has an ongoing passion to produce well - designed, high - quality software products that engage and delight users. For the past decade and a bit, David has worked as a solutions architect, consultant, and developer, and has provided expertise to organizations in Australia, New Zealand, and Malaysia. David is a regular speaker at the Perth .NET user group, and has presented at events including the .NET Framework Launch, TechEd Malaysia, and the Microsoft Executive Summit. He holds a Bachelor of Science (Computer Science) and is a Microsoft Certified Systems Engineer. David regularly blogs about Visual Studio and .NET at http://www.professionalvisualstudio .com/ , and maintains a personal web site at http://peaksite.com/ .

See More


Download TitleSizeDownload
All Code for Book 7.29 MB Click to Download
See More


Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
11 Typo
The last step:
the txtToSay.ext property

Should be:
the txtToSay.text property
9 133-149 Error in Header
The header for pages 133 - 149 says "Chapter 8" but it should be "Chapter 9."
See More
Back to Top