All-In-One Windows Base and .NET General Code Samples

All-In-One Windows Base and .NET General Code Samples

 

Introduction

The code samples demonstrate the typical programming topics about Windows Base and .NET General. These topics are either frequently asked in MSDN forums and Microsoft Support, or are requested by many developers via our code sample request function.

 

 

Visual Studio 2008 Code Samples

Sample Description Download ReadMe
CppCheckOSBitness The code sample demonstrates how to determine whether the operating system of the current machine or any remote machine is a 64-bit operating system. Download ReadMe.txt
CppCheckOSVersion This code sample demonstrates how to detect the current OS version, and how to make application that checks for the minimum operating system version work with later operating system versions. Download ReadMe.txt
CppCheckProcessBitness The code sample demonstrates how to determine whether the given process is a 64-bit process or not. Download ReadMe.txt
CppSetDesktopWallpaper This code sample application allows you to select an image, view a preview (resized smaller to fit if necessary), select a display style among Tile, Center, Stretch, Fit (Windows 7 and later) and Fill (Windows 7 and later), and set the image as the Deskto Download ReadMe.txt
CppWindowsHook The code sample shows how to set up a Windows Hook to hook mouse and keyboard inputs in a VC++ application Download ReadMe.txt
CSCheckOSBitness The code sample demonstrates how to determine whether the operating system of the current machine or any remote machine is a 64-bit operating system. Download ReadMe.txt
CSCheckOSVersion This code sample demonstrates how to detect the current OS version, and how to make application that checks for the minimum operating system version work with later operating system versions. Download ReadMe.txt
CSCheckProcessBitness The code sample demonstrates how to determine whether the given process is a 64-bit process or not. Download ReadMe.txt
CSManipulateAppConfig The code sample demonstrates using ConfigurationManager to create, read, update and delete nodes in the application config file. Download ReadMe.txt
CSProcessWatcher The project illustrates how to watch the process creation/modify/shutdown events by using the Windows Management Instrumentation(WMI). Download ReadMe.txt
CSSetDesktopWallpaper This code sample application allows you to select an image, view a preview (resized smaller to fit if necessary), select a display style among Tile, Center, Stretch, Fit (Windows 7 and later) and Fill (Windows 7 and later), and set the image as the Deskto Download ReadMe.txt
CSSMTPSendEmail This sample demonstrates sending email with attachment and embedded image in the message body using SMTP server from a C# program. Download ReadMe.txt
CSWindowsHook The code sample shows how to set up a Windows Hook to hook mouse and keyboard inputs in a VC# application Download ReadMe.txt
VBCheckOSBitness The code sample demonstrates how to determine whether the operating system of the current machine or any remote machine is a 64-bit operating system. Download ReadMe.txt
VBCheckOSVersion This code sample demonstrates how to detect the current OS version, and how to make application that checks for the minimum operating system version work with later operating system versions. Download ReadMe.txt
VBCheckProcessBitness The code sample demonstrates how to determine whether the given process is a 64-bit process or not. Download ReadMe.txt
VBManipulateAppConfig The code sample demonstrates using ConfigurationManager to create, read, update and delete nodes in the application config file. Download ReadMe.txt
VBProcessWatcher The project illustrates how to watch the process creation/modify/shutdown events by using the Windows Management Instrumentation(WMI). Download ReadMe.txt
VBSetDesktopWallpaper This code sample application allows you to select an image, view a preview (resized smaller to fit if necessary), select a display style among Tile, Center, Stretch, Fit (Windows 7 and later) and Fill (Windows 7 and later), and set the image as the Deskto Download ReadMe.txt
VBSMTPSendEmail This sample demonstrates sending email with attachment and embedded image in the message body using SMTP server from a VB program. Download ReadMe.txt

 

Visual Studio 2010 Code Samples

Sample Description Download ReadMe
CppPlatformDetector This code sanple demonstrated how to detect the underlying platform (OS name, OS version, OS Bitness, Process bitness) of the current process Download ReadMe.txt
CppRegisterHotkey The code sample demonstrates how to register a hotkey for the current application Download ReadMe.txt
CSCheckExeType The VC# code sample demonstrates how to check the executable file type (console/GUI, x86/x64, managed/unmanaged) for the given a .exe or .dll file. Download ReadMe.txt
CSDetectWindowsSessionState The code sample demonstrates detecting Windows Session state e.g. the session lock and unlock events. Download ReadMe.txt
CSEnumerateAppDomains The code sample demonstrates how to enumerate the managed processes running on the current system and the AppDomains in a given managed process using hosting API and debugging API. Download ReadMe.txt
CSFTPDownload The code sample demonstrates downloading files and folders from a FTP server Download ReadMe.txt
CSFTPUpload The code sample demonstrates uploading files and folders to a FTP server Download ReadMe.txt
CSMonitorRegistryChange The code sample demonstrates how to monitor registry change events in VC# Download ReadMe.txt
CSMultiThreadedWebDownloader The code sample demonstrates downloading files from web using multi-threads Download ReadMe.txt
CSPlatformDetector This code sanple demonstrated how to detect the underlying platform (OS name, OS version, OS Bitness, Process bitness) of the current process Download ReadMe.txt
CSRegisterHotkey The code sample demonstrates how to register a hotkey for the current application Download ReadMe.txt
CSTabbedWebBrowser The code sample demonstrates making WebBrowser support tabs Download ReadMe.txt
CSWebBrowserAutomation The code sample shows how to automate HTML elements loaded in WebBrowser control Download ReadMe.txt
CSWebBrowserSuppressError The sample demonstrates how to make the WebBrowser control suppress errors in the loaded page. Download ReadMe.txt
CSWebBrowserWithProxy The code sample demonstrates how to set proxy in the WebBrowser control Download ReadMe.txt
CSWebDownloader The code sample demonstrates how to create a simple web downloader and show the download progress Download ReadMe.txt
VBCheckExeType The VB code sample demonstrates how to check the executable file type (console/GUI, x86/x64, managed/unmanaged) for the given a .exe or .dll file. Download ReadMe.txt
VBDetectWindowsSessionState The code sample demonstrates detecting Windows Session state e.g. the session lock and unlock events. Download ReadMe.txt
VBEnumerateAppDomains The code sample demonstrates how to enumerate the managed processes running on the current system and the AppDomains in a given managed process using hosting API and debugging API. Download ReadMe.txt
VBFTPDownload The code sample demonstrates downloading files and folders from a FTP server Download ReadMe.txt
VBFTPUpload The code sample demonstrates uploading files and folders to a FTP server Download ReadMe.txt
VBMonitorRegistryChange The code sample demonstrates how to monitor registry change events in VB Download ReadMe.txt
VBMultiThreadedWebDownloader The code sample demonstrates downloading files from web using multi-threads Download ReadMe.txt
VBPlatformDetector This code sanple demonstrated how to detect the underlying platform (OS name, OS version, OS Bitness, Process bitness) of the current process Download ReadMe.txt
VBRegisterHotkey The code sample demonstrates how to register a hotkey for the current application Download ReadMe.txt
VBTabbedWebBrowser The code sample demonstrates making WebBrowser support tabs Download ReadMe.txt
VBWebBrowserAutomation The code sample shows how to automate HTML elements loaded in WebBrowser control Download ReadMe.txt
VBWebBrowserSuppressError The sample demonstrates how to make the WebBrowser control suppress errors in the loaded page. Download ReadMe.txt
VBWebBrowserWithProxy The code sample demonstrates how to set proxy in the WebBrowser control Download ReadMe.txt
VBWebDownloader The code sample demonstrates how to create a simple web downloader and show the download progress Download ReadMe.txt

 

Download all code samples: https://1code.codeplex.com/releases

Submit your request of Windows Base and .NET General code samples (Guidance)