Developer code samples

Download code samples and applications for Windows 8, Windows Phone, Microsoft Azure, Office, SharePoint, Silverlight and other products. You can also explore the Official Visual Studio C#, VB.NET, and 101 LINQ samples.New samples are added frequently in JavaScript, C++, C#, Visual Basic, and F#.
Each sample is licensed to you by the party distributing it. Microsoft does not guarantee the samples or grant rights for any sample distributed by a party other than Microsoft. Use of this site is subject to the Terms of Use.
Sort by: rss
9775 results
Matthew Manela
This sample shows how to convert from HTML to RTF and from RTF to HTML. It makes use of the WPF RichTextBox to convert to XAML first and then to RTF or HTML.
WPF
Featured
C#
Tom Dykstra - MSFT - Microsoft
A Visual Studio 2013 project which shows how to use the Entity Framework 6 in an ASP.NET MVC 5 web application project, using the Code First development approach.
4.4 Star
(171)
Updated 2/11/2017
Released 4/12/2011
563,132 Downloads
C#
ErikReitan
This download has been created for the ASP.NET 4.5 Web Forms and Visual Studio 2013 (Wingtip Toys) tutorial series. This series of tutorials guides you through the steps required to create an ASP.NET Web Forms application using Visual Studio Express 2013 for Web and ASP.NET 4.5.
4.4 Star
(85)
Updated 4/20/2016
Released 4/6/2012
346,633 Downloads
C#
Houssem Dellai
What I build is just a simple calculator that will show beginners how much easy it is to develop applications using the .NET Framework. Through this sample, they will see some most useful algorithmic operations.
C#, WPF, XAML
4 Star
(62)
Updated 8/15/2012
Released 8/14/2012
253,005 Downloads
C#
Rick_Anderson - Microsoft
Please follow the tutorial at http://www.asp.net/mvc/tutorials/mvc-5/introduction/getting-startedI'm only including all the info below because you can't post code downloads with out lots of text to go with it. You can ignore everything below, please to the asp.net site where the
4.1 Star
(17)
Updated 5/12/2014
Released 5/12/2014
87,505 Downloads
C#
Visual Studio Product Team

Visual Studio Product Team MSFT

Visual Studio Platform Team samples are developed and tested by the Visual Studio Platform Team to ensure that you have a great experience.

View samples
- Microsoft
Learn how to use LINQ in your applications with these code samples, covering the entire range of LINQ functionality and demonstrating LINQ with SQL, DataSets, and XML.
4.8 Star
(227)
Updated 4/26/2012
Released 8/11/2011
309,836 Downloads
C#
Jakeinc
Have you just installed Visual Studio and are ready to begin your first code? Then this sample is for you. This sample explains string variables and integer variables, if else statements, and mathematical expressions. These basic skills are necessary in C/F#/C++/VB programming.
C#, C++, F#
4.9 Star
(8)
Updated 2/8/2015
Released 4/22/2013
96,220 Downloads
Cephas Lin - Microsoft
The samples environments for Microsoft Chart Controls for .NET Framework 4 contain over 200 samples for both ASP.NET and Windows Forms, covering every major feature in Chart Controls for .NET Framework 4. See every major feature in action and learn at the same time.
4.3 Star
(26)
Updated 5/12/2014
Released 5/13/2014
157,769 Downloads
C#, HTML
John Howard -MSFT
HVRemote reduces the manual configuration steps needed for Hyper-V Remote Management down to a few simple commands, and can diagnose common configuration errors.
4.7 Star
(115)
Updated 10/24/2016
Released 3/29/2013
217,721 Downloads
Bartosz Rachwał
A Visual Studio 2015 project which shows how use create an Asp.Net MVC Application with a custom layout. The AdminLTE layout (MIT License) from https://almsaeedstudio.com/preview has been selected for the customization.
4.5 Star
(21)
Updated 2/10/2016
Released 2/2/2016
111,251 Downloads
C#
Official Windows platform sample

Official Windows platform sample MSFT

Official Windows platform samples are developed and tested by the Windows platform team to ensure that you have a great experience.

View samples
- Microsoft
This sample demonstrates how to use the Windows.Media.Capture.CameraCaptureUI API, which displays a full-screen UI for capturing photos or videos. The Camera Capture UI provides controls for switching from photo to video, a timer for taking time-dela...
4 Star
(17)
Updated 11/26/2013
Released 9/14/2011
105,586 Downloads

Couldn't find the sample you were looking for?

1 - 10 of 9775 Items