Creating Windows Mobile Widgets Using Visual Studio

4/8/2010

You can create Windows Mobile widgets using Visual Studio. The following environments support widget creation:

•Visual Studio 2005 SP1 or later (Standard or greater version)

•Visual Studio 2008 SP1 or later (Professional or greater version)

Creating widgets using Visual Studio requires adding the Windows Mobile 6.5.3 DTK to your Visual Studio environment.

To install the Widget extension for Visual Studio

  1. From the Microsoft download site, download the Windows Mobile 6.5.3 DTK.

  2. Click the Windows Mobile 6.5.3 DTK setup file.

  3. Follow the directions in the Setup Wizard.

  4. Widgets for Windows Mobile now shows up in your Visual Studio as a project type

To create a widget using the Widget extension:

  1. On the File menu, click New, and then click Project.

  2. In the Projects column, click Widgets for Windows Mobile.

  3. In the Templates column, click EmptyWidget or SimpleWidget.

    Note

    This step is not optional.

    Note

    The EmptyWidget template consists of an HTML file that contains only the empty <html>, <head>, <title>, and <body> tags, and a manifest file pre-populated with default values.

    Note

    The SimpleWidget template consists of an HTML file that links to a JavaScript file, two CSS files (one for low-DPI rendering and one for high-DPI rendering), and an image file. The included manifest file links all of the template files. Zipping and deploying the widget loads the widget and renders the image.

See Also

Concepts

Creating a Windows Mobile Widgets Manifest Using Visual Studio

Other Resources