Add Contacts' Birthdays to Calendar
This code sample is named BirthdaysToCalendar. It demonstrates how to write a managed Pocket Outlook Object Model (POOM) application.
To run the code sample
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.
Build the solution (Ctrl+Shift+B).
Deploy the solution (F5).
To use the application
- To add the birthdays to the calendar, choose Add from BirthdaysToCalendar's menu.
SDK: Windows Mobile 6 Professional SDK and Windows Mobile 6 Standard SDK
Development Environment: Visual Studio 2005.
ActiveSync: Version 4.5.
BirthdaysToCalendar iterates through a contact collection, and adds the birthday of the each contact to the Calendar, as a yearly, recurring, all-day event.
It is assumed that you have a set of Contacts with valid Birthdays.