accessing phone contacts list on the device

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.
 
C

Christian Resma Helle

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
 
C

Christian Resma Helle

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top