accessing phone contacts list on the device

  • Thread starter Thread starter hariadusumalli
  • Start date Start date
H

hariadusumalli

Hi,

Some one plz tell me how to access the phone contacts stored on the
device. I got info. that it can be done through POOM, but no links .
Please suggest.

Thanks,
Hari.
 
Look into the Windows Mobile 5.0 SDK, the
Microsoft.WindowsMobile.PocketOutlook to be specific.

For Pocket PC 2003 check out Peter Foot's InTheHand Mobile
 
Here's some sample code to get started with:

private Microsoft.WindowsMobile.PocketOutlook.OutlookSession session;
private Microsoft.WindowsMobile.PocketOutlook.ContactsCollection contacts;

void LoadContacts() {
session = new OutlookSession();
contacts = session.Contacts.Items;

lbContacts.DataSource = contacts; // lbContacts is a ListBox Control
}

Just remember to dispose your OutlookSession and ContactsCollection objects.
 
Back
Top