Dev Center
Windows Store apps
Internet Explorer
Desktop
Hardware
Sign in
Skip to main content
Browse by Resource Type: Windows Programming How To's
How To Categories
Animation
Architecture and Design
COM
Diagnostics
Deployment and Building
Files
Graphics and 3D
Interoperability
Location API
Performance
Ribbon
Security
Sensor
System Services
Taskbar
Touch
User Interface
Animation
Create Animation Variables
Create the Main Animation Objects
Create a Storyboard and Add Transitions
Read the Animation Variable Values
Schedule a Storyboard
Update the Animation Manager and Draw Frames
»
Back to How To Categories
Architecture and Design
How to: Create a Solution Using the Composite Application Library(Prism)
How to: Create a Module(Prism)
How to: Create and Publish Events(Prism)
How to: Create Globally Available Commands(Prism)
How to: Create Locally Available Commands(Prism)
How to: Define Dependencies Between Modules(Prism)
How to: Load Modules on Demand(Prism)
How to: Prepare a Module for Remote Downloading(Prism)
How to: Populate the Module Catalog from a Configuration File or a Directory in WPF(Prism)
How to: Populate the Module Catalog from Code(Prism)
How to: Populate the Module Catalog from XAML(Prism)
How to: Register and Use Services(Prism)
How to: Subscribe and Unsubscribe to Events
»
Back to How To Categories
COM
How to: Build Isolated Applications to Consume COM Components
How to: Build Registration-Free COM Components
»
Back to How To Categories
Diagnostics
How to: Create a Work Item for C/C++ Code Defects
How to: Enable and Disable Code Analysis for C/C++ Warnings
How to: Invoke Code Analysis for C/C++
How to: Specify Additional Code Information
How to: View Code Analysis for C/C++ Warnings
Walkthrough: Analyzing C/C++ Code for Defects
Walkthrough: Debugging a Project (C++)
Walkthrough: Debugging an XML Web Service
Walkthrough: Testing a Project (C++)
»
Back to How To Categories
Deployment and Building
How to: Add a Custom Build Step to MSBuild Projects
How to: Add Custom Build Tools to MSBuild Projects
How to: Deploy a Setup and Deployment Project
How to: Add New Property Sheets to C++ Projects
How to: Add Restart Manager Support
How to: Deploy using XCopy
How to: Use Build Events in MSBuild Projects
How to: Create a C++ Project from Existing Code
How to: Create Class Libraries
How to: Create CLR Console Applications
How to: Create CLR Empty Projects
How to: Create Windows Forms Control Libraries
How to: Create Windows Forms Applications
How to: Edit Project Property Sheets
How to: Enable IntelliSense for Makefile Projects
How to: Inherit Project Settings from Property Sheets
How to: Integrate Custom Tools into the Project Properties
How to: Merge Multiple PGO Profiles into a Single Profile
How to: Modify the Target Framework and Platform Toolset
How to: Organize Project Output Files for Builds
How to: Open Project Property Pages
How to: Set Environment Variables for Projects
How to: Specify Project Properties with Property Pages
Walkthrough: Building a Project (C++)
Walkthrough: Creating a Standard C++ Program (C++)
Walkthrough: Compiling a C Program
Walkthrough: Compiling a C++ Program that Targets the CLR in Visual Studio (C++)
Walkthrough: Compiling a Native C++ Program on the Command Line (C++)
Walkthrough: Creating and Using a Dynamic Link Library (C++)
Walkthrough: Creating and Using a Static Library (C++)
Walkthrough: Creating and Using a Managed Assembly (C++)
Walkthrough: Deploying a Visual C++ Application By Using a Setup Project
Walkthrough: Deploying a Visual C++ Application By Using the Visual C++ Redistributable Package
Walkthrough: Deploying a Visual C++ Application to an Application-local Folder
Walkthrough: Deploying Your Program (C++)
Walkthrough: Using MSBuild to Create a Visual C++ Project
Walkthrough: Working with Projects and Solutions (C++)
»
Back to How To Categories
Files
How to: Convert Image File Formats with the .NET Framework
How to: Display Images with the .NET Framework
How to: Enumerate Files in a Directory
How to: Monitor File System Changes
How to: Read a Binary File
How to: Read a Text File
How to: Retrieve File Information
How to: Write a Binary File
How to: Write a Text File
»
Back to How To Categories
General
How to: Access Characters in a System::String
How to: Access ClassWizard and WizardBar Functionality
How to: Add Native DLL to Global Assembly Cache
How to: Call Native DLLs from Managed Code Using PInvoke
How to: Call Properties and Methods of the Windows Forms Control
How to: Convert Between System::Guid and _GUID
How to: Convert char * String to System::Byte Array
How to: Convert Standard String to System::String
How to: Convert System::String to wchar_t* or char*
How to: Convert System::String to Standard String
How to: Create Verifiable C++ Projects
How to: Declare Handles in Native Types
How to: Detect /clr Compilation
How to: Determine if an Image is Native or CLR
How to: Hold Object Reference in Unmanaged Memory
How to: Hold Reference to Value Type in Native Type
How to: Load Unmanaged Resources into a Byte Array
How to: Marshal ANSI Strings Using C++ Interop
How to: Marshal Arrays Using C++ Interop
How to: Marshal Arrays Using PInvoke
How to: Marshal Embedded Pointers Using PInvoke
How to: Marshal Function Pointers Using PInvoke
How to: Marshal COM Strings Using C++ Interop
How to: Marshal Strings Using PInvoke
How to: Marshal Structures Using C++ Interop
How to: Marshal Structures Using PInvoke
How to: Marshal Callbacks and Delegates Using C++ Interop
How to: Marshal Embedded Pointers Using C++ Interop
How to: Marshal Unicode Strings Using C++ Interop
How to: Migrate to /clr:pure
How to: Migrate to /clr:safe
How to: Modify Reference Class in a Native Function
How to: Obtain a Pointer to Byte Array
How to: Parse Strings Using Regular Expressions
How to: Parse Strings Using the Split Method
How to: Specify an out Parameter
How to: Use a Native Type in a /clr Compilation
How to: Use Regular Expressions for Simple Matching
How to: Use Regular Expressions to Extract Data Fields
How to: Use Regular Expressions to Rearrange Data
How to: Use Regular Expressions to Search and Replace
How to: Use Regular Expressions to Validate Data Formatting
How to: Wrap Native Class for Use by C#
»
Back to How To Categories
Graphics and 3D
How to: Convert Image File Formats with the .NET Framework
How to: Display Images with the .NET Framework
How to: Draw Shapes with the .NET Framework
How to: Rotate Images with the .NET Framework
»
Back to How To Categories
Interoperability
How to: Consume a C# Indexer
How to: Diagnose and Fix Assembly Compatibility Problems
How to: Display Inheritance Graphs
How to: Enumerate Data Types in Assemblies using Reflection
How to: Implement is and as C# Keywords in C++
How to: Implement the lock C# Keyword in C++
How to: Implement a Plug-In Component Architecture using Reflection
How to: Marshal a SAFEARRAY for ADO.NET
How to: Marshal a VARIANT for ADO.NET
How to: Marshal ANSI Strings for ADO.NET
How to: Marshal BSTR Strings for ADO.NET
How to: Marshal Unicode Strings for ADO.NET
How to: Test for Equality
»
Back to How To Categories
Location API
Handling Provider Status Changes
Responding to Location Report Events
Retrieving a Location Object
Requesting Permissions
Waiting for a Location Report
»
Back to How To Categories
Performance
How to: Merge Multiple PGO Profiles into a Single Profile
How to: Read Windows Performance Counters
Walkthrough: Using Profile-Guided Optimizations
»
Back to How To Categories
Ribbon
Creating a Ribbon Application
Walkthrough: Creating a Custom Tab by Using Ribbon XML
»
Back to How To Categories
Security
How to: Create a Partially Trusted Application by Removing Dependency on the CRT Library DLL
How to: Debug a Partial Trust Application
»
Back to How To Categories
Sensor
Retrieving a Sensor Object
Retrieving and Setting Sensor Properties
Retrieving Sensor Data Values
Using Sensor API Events
»
Back to How To Categories
System Services
How to: Determine if Shutdown Has Started
How to: Determine the User Interactive State
How to: Read Data from the Windows Registry
How to: Retrieve Text from the Clipboard
How to: Retrieve the .NET Framework Version
How to: Retrieve the Current Username
How to: Retrieve the Local Machine Name
How to: Retrieve the Windows Version
How to: Retrieve Time Elapsed Since Startup
How to: Store Text in the Clipboard
How to: Write Data to the Windows Registry
»
Back to How To Categories
Taskbar
Adding, Modifying, and Deleting Icons in the Notification Area
Adding and Deleting Taskbar Icons in the Notification Area
Adding Shortcuts to the Start Menu
How to: Add Application Icons to the TaskBar with the Windows Forms NotifyIcon Component
Receiving Mouse Events
»
Back to How To Categories
Touch
Detecting and Tracking Multiple Touch Points
Getting Started with Windows Touch Messages
Improving the Single Finger Panning Experience
Legacy Support for Panning with Scroll Bars
Single Finger Rotation
»
Back to How To Categories
User Interface
How to: Add a Region(Prism)
How to: Add Command Routing to the Windows Forms Control
How to: Create a View with a Presenter(Prism)
How to: Create the Best User Experience for your Application
How to: Create the User Control and Host in a Dialog Box
How to: Create the User Control and Host MDI View
How to: Do DDX/DDV Data Binding with Windows Forms
How to: Show a View in a Region Using View Discovery UI Composition(Prism)
How to: Show a View in a Region Using View Injection UI Composition(Prism)
How to: Show a View in a Scoped Region(Prism)
How to: Sink Windows Forms Events from Native C++ Classes
»
Back to How To Categories