Here is how to open the Contacts list or Address book:
private Outlook.Application outlook;
private void button1_Click(object sender, System.EventArgs e)
{
try
{
outlook = new Outlook.Application();
Outlook.NameSpace mapiNamespace = outlook.GetNamespace("MAPI");
Outlook.MAPIFolder mapiFolder =
mapiNamespace.GetDefaultFolder(Outlook.OlDefaultFo lders.olFolderContacts);
mapiFolder.Display();
}
catch(Exception ex)
{
Debug.WriteLine(ex.Message);
}
}
Adrian.
--
[Please mark my answer if it was helpful to you]
"Alexander Szigetvary" wrote:
Hi NG!
Is there a way to open the Outlook address book dialog (as in Outlook) using
C#? I am using Outlook 2003 (MS Outlook 11.0 Object Library).
In Outlook 2007 it can be done with SenderNameDialog. I need to support both
versions.
Any hints?
TIA
Alex