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
9621 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#
SoftwareByDefault
Developers usually generate web service client proxy code in order to call into web services. Since WSDL is an exact description of a web service it is also possible to generate code that represents a web service. This article illustrates how to generate a web service from WSDL.
(13)
Updated 2/17/2013
Released 2/17/2013
22,693 Downloads
C#
SYEDSHANU
Easy SQL Server Tool will allow users to Create SQL Server Database, Delete Database, Load all Database Names from a SQL selected Server, Create a New Table, Insert records to Table, Select Records from Table and bind the result to grid, Export the selected result to CSV
(4)
Updated 11/14/2016
Released 1/4/2016
3,614 Downloads
A.m.a.L Hashim
IntroductionWindows form application mimicing the functionality of a handheld calculator. It supports all basic functionality of calculator such as Addition, Subtraction, Multiplication, Division, Square Root etc. This solution can be used by beginners who are trying
to learn C
C#
(2)
Updated 4/21/2011
Released 4/21/2011
13,416 Downloads
C#
Migrated Galleries Content - Microsoft
Simple calculator - Demonstrates the concepts and syntax of the Managed Extensibility Framework (MEF)
(6)
Updated 3/7/2011
Released 3/7/2011
25,726 Downloads
OneCode Team
The sample shows how to use HttpClient post Json data in windows 8 metro application.
(4)
Updated 9/22/2016
Released 11/15/2013
18,465 Downloads
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 ODBC APIs to connect to and access a database.
(3)
Updated 10/17/2013
Released 2/29/2012
32,028 Downloads
C++
Daniel Roth - Microsoft
In this sample we show how you can use ASP.NET Web API to build web APIs that support browser clients and can be easily called using jQuery.
(14)
Updated 8/15/2012
Released 2/21/2012
47,641 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
Demonstrates use of the Bluetooth Generic Attribute Profile (Gatt) Windows Runtime API to interact with a Bluetooth Gatt device, which contains a Heart Rate Service.
(7)
Updated 9/4/2014
Released 6/26/2013
23,147 Downloads
Steve Danielson - Microsoft
This project is a completed version of the WF45 Getting Started Tutorial. It demonstrates how to create and host a long running workflow that uses custom activities, tracking, persistence, and the new versioning features in WF45.
(17)
Updated 8/22/2012
Released 6/14/2012
45,228 Downloads
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 MediaCapture API to capture video, audio, and pictures from a capture device, such as a webcam.
(26)
Updated 4/2/2014
Released 9/14/2011
90,286 Downloads

Couldn't find the sample you were looking for?

71 - 80 of 9621 Items