[Sample Of Nov 30th] How to check the executable file type in .NET

  Sample Download : http://code.msdn.microsoft.com/CSCheckExeType-aab06100 The sample demonstrates how to check an executable file type. Given an exe or a dll,the sample application detects:  1. exe type (console or GUI, or other exe type) by checking the subsystem flag in PE 2. Is it a .NET assembly?     If no,         – detect the exe bitness…

0

[Sample Of Nov 28th] How to crop the image from Picturebox control in Windows Forms application

  Sample Download :  http://code.msdn.microsoft.com/CSWinFormCropImage-d4beb1fa The sample demonstrates how to crop the image from specific Picturebox control into destination Picturebox control using mouse selection or specified coordinates. How to use mouse to select an area (rectangle) in a Picturebox control. How to crop the image by the rectangle You can find more code samples that…

0

[Sample of Nov 27th] How to access untyped/strong typed DataSets by using LINQ

  Sample Download :  http://code.msdn.microsoft.com/CSLinqToDataSets-5f6596c4 This sample demonstrates how to use Microsoft Language-Integrated Query (LINQ) technology to access untyped DataSet and strong typed DataSet. You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the…

0

[Sample Of Nov 26th] How to Store Data of DataSet into XML File

  Sample Download :  http://code.msdn.microsoft.com/How-to-Store-Data-of-7b9710f3 In this sample, we will demonstrate how to write data into XML file from DataSet and read data into DataSet from XML. 1. We will create one dataset with two tables. 2. We will use two ways to export dataset into the XML files:WriteXml method and GetXml method. 3. We…

0

[Sample Of Nov 25th] How to modify data in DataTable and update to the data source

  Sample Download :  http://code.msdn.microsoft.com/How-to-modify-data-in-c68d35f4 We have several ways to modify the data in DataTable. In this application, we will demonstrate how to use different ways to modify data in DataTable and update to the source. 1. We use SqlDataAdapter to fill the DataTables. 2. We set  DataTable Constraints in DataTables. 4. We use DataTable…

0

[Sample Of Nov 24th] How to create editable vector image in Windows Store apps

  Sample Download :  http://code.msdn.microsoft.com/How-to-create-editable-0ea22517 This sample demonstrates how to create an editable vector in Windows Store apps.   You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download…

0

[Sample Of Nov 22nd] How to use SqlDependency to get the notification in Entity Framework

  Sample Download : CS Version: http://code.msdn.microsoft.com/How-to-use-SqlDependency-5c0da0b3 VB Version: http://code.msdn.microsoft.com/How-to-use-SqlDependency-f4b8eb43 We can use the Sqldependency to get the notification when the data is changed in database, but EF doesn’t have the same feature. In this sample, we will demonstrate how to automatically update by Sqldependency in Entity Framework. In this sample, we will demonstrate two…

0

[Sample Of Nov 21st] How to save the content of SurfaceImageSource to image file in Windows Store app

  Sample Download :  C# Version: http://code.msdn.microsoft.com/How-to-save-SurfaceImageSou-8668a455 VB Version: http://code.msdn.microsoft.com/How-to-save-SurfaceImageSou-a8eb9566 C++ Version: http://code.msdn.microsoft.com/How-to-save-SurfaceImageSou-7a4e0bc1 SurfaceImageSource provides Microsoft DirectX shared surfaces to draw into and then composes the bits into app content. This code sample will show you how to save the content of SurfaceImageSource to image file.   You can find more code samples that demonstrate the…

0

[Sample Of Nov 20th] How to support multi-touch in WPF

  Sample Download :  CS Version: http://code.msdn.microsoft.com/CSWPF3DMultiTouch-17e457ba VB Version: http://code.msdn.microsoft.com/VBWPF3DMultiTouch-acdbe10e This sample demonstrates how to use WPF 4’s multi-touch events to manipulate a 3D scene. It renders an earth. You can use your fingers to rotate the earth in any directions (not only along the latitudes and the longitudes). You can also use the standard…

0

[Sample Of Nov 19th] How to create a splash screen in Windows Forms applications

  Sample Download :  http://code.msdn.microsoft.com/CSWinFormSplashScreen-4a97fc0a The code sample demonstrates how to create a splash screen in Windows Forms applications.   You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples,…

0