Skip to main content

Visual Studio 2010 Code Samples

Get the latest code samples for Visual Studio. Here you'll find links to sample applications and code snippets from Microsoft and the Visual Studio community.

Language Samples

Visual Basic

Samples and documents describing Visual Basic 10.0 language and IDE features.

Visual C#

Samples and documents describing the C# 4.0 language and IDE features.

Visual C++

Code examples for applications and tools showing the capabilities of Visual C++.

Visual F#

A collection of F# sample code, from introductory tutorials to full example F# projects.

Technology Samples

101 C# LINQ Code Samples

Learn how to use LINQ in your applications with these C# code samples, covering the entire range of LINQ functionality and demonstrating LINQ with SQL, DataSets, and XML.

101 Visual Basic LINQ Code Samples

Learn how to use LINQ in your applications with these Visual Basic code samples, covering the entire range of LINQ functionality and demonstrating LINQ with SQL, DataSets, and XML.

All-In-One Code Framework

A Codeplex resource that offers samples developed by the Microsoft Support Team in response to common questions that come through our forums.

Entity Framework 4.0

An end-to-end WPF application sample that illustrates Entity Framework 4.0 features. Features include common design patterns such as Repository, Unit of Work, and Model View View-Model that promote testability and maintainability of code.

Office Development in Visual Studio 2010

Samples include Excel, Word and Outlook solutions and are available in both Visual Basic and C#.

Parallel Processing: C++

Includes libraries and tools to help developers be more productive at writing parallel and concurrent applications.

Parallel Processing: C# and Visual Basic

Includes libraries and tools to help developers be more productive at writing parallel and concurrent applications.

SharePoint Development in Visual Studio 2010

Samples demonstrate SharePoint 2010 development projects, tools, and techniques. Each sample is available in both Visual Basic and C#.

Silverlight and WPF Data Binding Samples

Samples demonstrate how to create data-based forms solutions that check user input with validation code, demonstrate common controls such as DataGrid and ComboBox, and show typical data manipulation including create, read, update, and delete.

Team Foundation Server 2010 SDK

Samples for the Team Foundation Server SDK (samples are no longer included with the Visual Studio SDK), deep dive documentation, and links to shared source projects and other resources.

Visual Studio Extensibility

Includes samples, documentation and shared source projects to help you extend Visual Studio.

Windows Communication Foundation (WCF)

A collection of samples that demonstrate using features of Windows Communication Foundation.

Windows Presentation Foundation (WPF)

Includes WPF documentation samples that complement the WPF product documentation.

Windows Workflow Foundation (WF)

Includes a variety of code samples and starter kits available for Windows Workflow Foundation.