This documentation is archived and is not being maintained.

Visual Basic and Visual C# (How Do I in Smart Devices)

Visual Studio 2008

This page links to help on common development tasks with the .NET Compact Framework.

How to: Install the .NET Compact Framework on a Device

Describes how to install the .NET Compact Framework on a device or emulator.

How to: Create Device Applications Using Visual Basic or Visual C#

Describes how to create device applications, and how the process differs from creating desktop applications.

How to: Share Source Code Across Platforms (Devices)

Describes how to use compiler constants to share the same source code across different platforms.

How to: Change Platforms in Device Projects

Describes how to change between platforms in the same project.

How to: Upgrade Projects to Later .NET Compact Framework Versions

Describes how to upgrade the platform of an existing project if a later version of the platform is installed.

Managing Code Snippets in Device Projects

Describes how to use snippets that pertain exclusively to device projects.

How to: Verify Platform Support for Code in Device Projects

Describes how to ensure that your code is supported by the target platform.

How to: Handle HardwareButton Events (Devices)

Describes how to override the application keys on a Pocket PC.

How to: Change the Orientation and Resolution of Forms (Devices)

Describes how to change orientation and resolution if the defaults are incorrect or lacking.

How to: Change the Default Device (Managed Projects)

Describes how to change the target device during project development.

How to: Optimize Help for Smart Device Development

Describes how to use the Smart Device Help filter to show only those .NET Framework elements supported for device application development.

Walkthrough: Creating Windows Forms Applications for a Device

Describes how to create a simple Visual C# or Visual Basic Windows Forms device application.

Walkthrough: Authoring User Controls for Devices

Describes how to author a custom control.

Walkthrough: Adding a Simple Attribute to a User Control

Describes how to add a custom attribute that makes a property of the control invisible at design time

Walkthrough: Hello World: A COM Interop Example for Smart Devices

Demonstrates how a managed project can host a COM object.

Walkthrough: Exchanging Data between Desktop and Device Applications

Describes how to use the Smart Device Connectivity API to exchange data between device and desktop applications.