Visual Studio 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
9546 results
Glenn Gailey [MSFT] - Microsoft
This sample demonstrates how to use WCF Data Services to implement an OData service that uses a streaming provider to store and retrieve image files, along with information about each photo. It includes a client application that enables you to consume and upload new photos.

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
(182)
Updated 2/11/2017
Released 4/12/2011
654,042 Downloads
C#
SYEDSHANU - MVP
In this article we will see how to use ASP.NET Identity in MVC Application for creating user roles and displaying the menu depending on user roles.Here we will see how to: 
Create default admin role and other roles. Create default admin users. Add Username for new User Registrat
4.1 Star
(35)
Updated 6/8/2018
Released 1/14/2016
43,968 Downloads
C#, SQL, HTML, XML
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
(236)
Updated 4/26/2012
Released 8/11/2011
338,886 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.3 Star
(91)
Updated 4/20/2016
Released 4/6/2012
400,463 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
3.9 Star
(19)
Updated 5/12/2014
Released 5/12/2014
140,636 Downloads
C#
SelectPdf
Converting from html to pdf is not an easy task. There are some tools that can do that, but most of them cost thousands of dollars. SelectPdf offers a Community Edition (FREE) of the powerful Html To Pdf Converter for .NET that can be found in the full featured pdf library.
3.6 Star
(57)
Updated 6/7/2018
Released 2/24/2015
46,976 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.4 Star
(33)
Updated 10/19/2017
Released 5/12/2014
197,952 Downloads
C#, HTML
Ricky_Brundritt
This code sample shows how to load the Bing Maps V8 Web control inside of a WinForm application using a WebBrowser control.
5 Star
(1)
Updated 12/14/2016
Released 12/14/2016
7,320 Downloads
C#
Ricky_Brundritt - Microsoft
This code sample shows how to create draggable routes in the Bing Maps Bing Maps WPF control.
5 Star
(1)
Updated 1/27/2017
Released 1/27/2017
6,476 Downloads
C#
Eriawan Kusumawardhono
Sample code of Getting Started with ASP.NET Web API 2Excerpt from the tutorial: HTTP is not just for serving up web pages. It is also a powerful platform for building APIs that expose services and data. HTTP is simple, flexible, and ubiquitous.
4 Star
(1)
Updated 7/24/2017
Released 7/24/2017
16,127 Downloads
C#

Couldn't find the sample you were looking for?

1 - 10 of 9546 Items