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.



Generics: Move Beyond Collections

Generics can solve many more problems than collections. Use generics to write code once and reuse it more easily.

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.

Add Custom Colors to Your Forms

Make your Windows Forms apps shine with custom color palettes; pros and cons for creating apps with an Office 2007 look-and-feel; and drill down on anonymous methods in C# and VB .NET.

Drilldown on WSE 3.0

Take advantage of WSE 3.0 to set up Web service authentication with a username and password using only one server certificate.

Implement Custom Generic Collections

Take advantage of custom generic collections to manipulate data more easily in real-world applications.

Simplify Programmatic File Access

Access files in different locations using the same code, whether the files reside on a file server, a Web server, or an FTP server.

Update CF Apps Automatically

Simplify the administration and updating of Compact Framework applications by writing a Web service that facilitates checking for new files for a given app, as well as downloading and updating that app if a newer version exists.

Take Advantage of Continuous Integration

Compiling your applications frequently can help you save time, effort, and sleepless nights down the road. Learn how to implement this system using the open source tool, Draco.NET.

Roll Your Own Control Designers

It's not enough to build a great custom control to help your end users -- you must also help other developers use your control.

Enforce Password Complexity Policies

Build a component to accommodate changing requirements without having to recompile your code.

Validate Business Objects Declaratively

Take advantage of .NET attributes to provide robust validation for your business objects, while generating user-interface validation automatically.

Build More Scalable Sites

Learn how to integrate ASP.NET's built-in security tools with the features of your existing site.

Simplify Web Development with Visual Studio 6.0

If you want to build the flashiest, most dynamic site possible and reach the largest possible audience, read on

Implement a File Transfer Web Service

Implement a Web service that performs a binary file transfer using Web Service Enhancements 3.0 and MTOM.

Test Drive VB9 and DLinq

The January 2006 Language Integrated Query (LINQ) preview for the next ("Orcas") version of Visual Basic enables automating SQL Server object-relational mapping for DLinq and enhances XLinq syntax for literal XML and late binding.

Subscribe on YouTube