MSDN Code Gallery

Download and share sample applications, code snippets, and other resources with the developer community.
MSDN Code Gallery RSS Feed

Browse and Download

Browse MSDN Code Gallery
Browse the Code Gallery to find samples contributed by the community.

Upload New Resource

Upload new resource
Create a new Resource Page to share code, provide an overview and host discussions about your code or resource.
Microsoft does not control, review, revise, endorse or distribute the third party resources on this site. Microsoft is hosting the MSDN Code Gallery site solely as a web storage site as a service to the developer community. For more information, read the Terms Of Use.

Newly Released Resources

LinqCreation
LinqCreation

Inside Necessary .NET Book Sample
My book about inside .net, published in Apri 2008.

Manage ZIP files from within .NET applications
Need to create a zip file from within a .NET application? Do you want to unzip a zip file from within a Windows Forms application? Create a zip f...

Visual Basic with zetro
Hai I am Visual basic developer, we have create some application inventory system and pos application with Visual Basic 6 and mySQL database

WaterMarkNC Plugin JQuery
Plugin para aplicar watermark a input box o textbox (asp). Recibe dos parámetros: JQuery.WaterMarkOn(param1, param2); param1: string conteniendo aq...

XPath Sample Code
Sample code for compiling and evaluating XPath expressions against XML. All XPath expression result types are supported. Node sets are the most co...

WMI via C#
Sample code for querying WMI.

Reading an Excel spreadsheet using ADO.NET
Sample code illustrating how to connect to an Excel spreadsheet data source using ADO.NET. The binary can be used to test connecting to spreadshee...

Code for "Silverlight 2 Transforms And Clipping Regions"
Silverlight is powerful enough to let you easily build an image magnification feature for you web site with very little code, most of which is XAML...

Code for "Group Determination In Software Testing"
There is a large body of research on group techniques to determine the best alternative from a set of options. Dr. James McCaffrey outlines five of...

 

Most Popular Resources

Windows 7 Developer Guide
Build applications on a solid foundation; enable richer application experiences; and integrate the best of Windows and web services. The features a...

Samples Environment for Microsoft Chart Controls
The samples environment for Microsoft Chart Controls for .NET Framework contains over 200 samples for both ASP.NET and Windows Forms. The samples c...

C# Samples for Visual Studio 2008
Our first release on CodeGallery contains updates to the official C# samples that ship with Visual Studio 2008.

StyleCop
StyleCop analyzes C# source code to enforce a set of style and consistency rules. It can be run from inside of Visual Studio or integrated into an ...

Visual Basic Forms over Data Video Series Samples
This how-to video series is dedicated to getting Visual Basic developers productive on areas of data-based Windows Application development.

Employee Info Starter Kit
This is a starter kit, which includes very simple user requirements, where we can create, read, update and delete (crud) the employee info of a com...

CSharpCodeResources
This is my C-Sharp Code Resources Page. Here you may find some useful C-Sharp Codes that would enhance your productivity in C-Sharp Applications De...

WPF Forms over Data Videos
This how-to video series is dedicated to getting developers productive on areas of data-based Windows Presentation Foundation (WPF) Application dev...

Silverlight2 - Simplified Chinese Academia Samples
Personal Library Overview The Personal Library sample is a typical Silverlight application which is used to display Silverlight 2 SDK Documents wit...

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

Updating...
Page view tracker