Compartilhar via


Add Contacts' Birthdays to Calendar

Windows Mobile SupportedWindows Embedded CE Not Supported

8/28/2008

This code sample is named BirthdaysToCalendar. It demonstrates how to write a managed Pocket Outlook Object Model (POOM) application.

Feature Area

Pocket Outlook Object Model Application Development

Windows Mobile Features (Managed)

Relevant APIs

Microsoft.WindowsMobile.PocketOutlook namespace

To run the code sample

  1. Navigate to the solution file (*.sln), and double-click it. By default, the solution files are copied to the following folders:

    C:\Program Files\Windows Mobile 6 SDK\Samples\Common\CS\BirthdaysToCalendar

    Microsoft Visual Studio 2005 launches and loads the solution.

  2. Build the solution (Ctrl+Shift+B).

  3. Deploy the solution (F5).

To use the application

  • To add the birthdays to the calendar, choose Add from BirthdaysToCalendar's menu.

Development Environments

SDK: Windows Mobile 6 Professional SDK and Windows Mobile 6 Standard SDK

Development Environment: Visual Studio 2005.

ActiveSync: Version 4.5.

Demonstrates

BirthdaysToCalendar iterates through a contact collection, and adds the birthday of the each contact to the Calendar, as a yearly, recurring, all-day event.

Comments

It is assumed that you have a set of Contacts with valid Birthdays.

See Also

Reference

Concepts

Code Samples for Windows Mobile

Other Resources

Windows Mobile Features (Managed)
Pocket Outlook Object Model (POOM)