Search Results

Search found 1 results on 1 pages for 'djczermino'.

Page 1/1 | 1 

  • C# VSTO Outlook 2007: How to show contact by EntryID

    - by DjCzermino
    How to open Contact using C# VSTO Outlook 2007 addin by EntryID. Now I am foreaching all contacts in Contact Folder: string entryid = ... Outlook.Application outlookApp = new Outlook.Application(); Outlook.MAPIFolder fldContacts = outlookApp.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts) as Outlook.MAPIFolder; foreach (Outlook._ContactItem contact in fldContacts.Items) { if (contact.EntryID==entryid) { contact.Display(false); break; } } but this is not effective code for many contacts in Contact Folder

    Read the article

1