How to: Create Device Applications Using Visual Basic or Visual C#
Creating Visual Basic and Visual C# managed projects for devices follows the same general process as creating projects for the desktop, except that you must select a target platform (for example, Windows Mobile 5.0 Pocket PC) and .NET Compact Framework version (for example, v3.5) on which the project is designed to run.
Anteckning
Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Visual Studio Settings.
Open the New Project dialog box and select the Smart Device Project template.
On the File menu in Visual Studio, point to New, and then click Project.
Under Project Types in the New Project dialog box, expand Visual Basic Projects or Visual C#, and then click Smart Device.
If the language you want does not at first appear, expand Other Languages. This display is governed by your development settings. To view or change your settings, click Import and Export Settings on the Tools menu.
In the Templates pane, click Smart Device Project.
(Optional) In the Name box, type a name for the project.
(Optional) If a Location box is displayed, verify where you want to store your project files, and then click OK.
The Smart Device Project Settings dialog box appears.
Configure and create the new Smart Device Project.
(Optional) To target a different platform, change the selection in the Target platform drop-down list, for example WindowsMobile 5.0 Pocket PC SDK.
(Optional) To target a different version of the .NET Compact Framework, change the selection in the .NET Compact Framework version drop-down list, for an example .NET Compact Framework Version 3.5.
In the Templates pane, click the desired project template, for example Device Application, and then click OK.
On the File menu, point to Add, and then click New Project or Existing Project.
The Add New Project or Add Existing Project dialog box opens so that you can add a new project or add an existing project.
The steps for porting projects created in an earlier version of Visual Studio are described in the general Visual Studio documentation for managing projects.
For more information, see Projects and Backward Compatibility and Working With Multiple Versions of the .NET Framework.
Walkthrough: Creating Windows Forms Applications for a Device
Creating and Developing Managed Device Projects
Deciding Which Technologies and Tools To Use