Code

The following articles come with code downloads. To get the code downloads, click on the article titles, then click on the Code Download button.



Implement Expandable Menus

Learn how to create expandable menus such as you find in Office; handle mouse up/down events properly; and create a custom toolstrip button.

Inform Users With Customized Visual Feedback

Add and customize visual cues on your AJAX-enabled Web pages with the UpdateProgress control and PageRequestManager class.

Partial-Page Updates With the UpdatePanel

Add partial-page update capabilities to your ASP.NET Web pages.

Reflecting on Generics

Determine whether an existing variable is a generic type and whether you have to use reflection in particular cases; create irregularly shaped forms; and enable remoting with single-instance applications.

Whip WPF Snippets Into Shape

Learn how to work around some ugly behavior in WPF when relying on the provided code snippets; change the output of provided WPF snippets; resolve dependency issues in Windows Workflow; and more.

Write Robust Exception-Handling Code

Thrown exceptions break the normal flow of execution in a program to report error conditions. A few simple techniques can help you preserve execution flow and give users and administrators the information they need to understand what went wrong.

Reduce Lines of Code With C# 3.0

You already know what those new features in C# 3.0 are doing because you do these same things in C# 2.0. Learn how C# 3.0 can reduce coding lines and improve readability by walking through a reverse migration.

Give Your Users a Voice

.NET 3.0 introduces several new features that simplify utilizing speech in your applications.

Build a Custom Data-Bound Generator

Learn how to write custom data-bound generator.

Configure ASP.NET AJAX Extensions

Explore ASP.NET AJAX configuration sections in web.config, and learn how handlers and modules fit into the overall picture.

Getting Started With AJAX

Discover the concepts behind AJAX and why using it in your ASP.NET development is advantageous.

Update Local Data Caches with Sync Services

The Microsoft Synchronization Services 1.0 API for SQL Server 2005 Compact Edition and the new Sync Designer in the Orcas March 2007 CTP team up to generate a local data cache that synchronizes incrementally and bidirectionally with SQL Server Express.

Use Enums Across Assembly Boundaries

Call a combo box across assembly boundaries with generics and enums; add contact information with Assembly Information; and drill down on FxCop spelling rules.

Write Tests Before You Code

Use the Test-Driven Development methodology in Visual Studio Team System to write tests and improve the quality of your code.

Build a Custom Data-Bound Generator

Learn how to write custom data-bound generator.