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
2363 results in VB.NET [Clear]
Migrated Galleries Content - Microsoft
The AdventureWorks Data Binding sample demonstrates data binding that uses the Entity Framework. This application displays and modifies SalesOrderDetail entities associated with SalesOrderHeader entities.
Featured
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
These are the official samples for Visual Studio 2010 C# 4.0.
4.6 Star
(104)
Updated 7/17/2012
Released 11/29/2011
592,754 Downloads
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
115,183 Downloads
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
(54)
Updated 9/25/2017
Released 2/24/2015
35,275 Downloads
OneCode Team
How to Export DataGridView Data to Excel by using Excel Object
3.3 Star
(9)
Updated 8/17/2016
Released 5/20/2015
19,115 Downloads
Parallel Computing Platform - Microsoft
This project provides samples and extensions for the parallel programming support in the .NET Framework.
4.7 Star
(80)
Updated 9/28/2011
Released 7/23/2011
121,586 Downloads
OneCode Team - Microsoft
This sample demonstrates how to create and access session variables in ASP.NET MVC.
4.2 Star
(5)
Updated 9/21/2016
Released 6/23/2014
17,501 Downloads
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
This project contains about 101 samples using LINQ.
4.8 Star
(89)
Updated 3/13/2012
Released 5/31/2011
174,670 Downloads
Kemp Brown - Microsoft
This is the complete sample of the Picture Viewer tutorial, which loads a picture from a file and displays it in a window.
4.9 Star
(10)
Updated 10/26/2013
Released 10/26/2013
52,349 Downloads
MusakkhirSayyed
Import Data from SpreadSheet into SQL Server.
Are there special requirements or instructions for building the sample?DescriptionYou can import Data from Excel sheet into SQL Server by C# or VB.NET.                                               Two namespace is required for this
4.8 Star
(4)
Updated 10/17/2014
Released 10/17/2014
26,861 Downloads
CLR User Education team - Microsoft
The Format Utility (Formatter.exe) is a Windows Forms application that allows you to apply standard or custom format strings to either numeric values or date and time values and to determine how they affect the result string.
3.4 Star
(8)
Updated 3/11/2012
Released 3/9/2012
23,945 Downloads

Couldn't find the sample you were looking for?

1 - 10 of 2363 Items