Outlook Account Manager and Exchange

May 25, 2009 at 7:55 PM

Hello,

I'm using Outlook Account Manager and I have a problem when gettin e-mail adress from a exchange account. Here is a part of my application, it retrive all the Outlook accounts and add it in the combo box :


if (accounts[i].IsExchange)
{
   cbxAccounts.Items.Add(accounts[i].ExchangeEmailID.ToString());
}
else

   cbxAccounts.Items.Add(accounts[i].EmailID.ToString());
}

ExchangeEmailID or ExchangeEmailID did not work (null object). Someone has the same problem? How to fix it ??

Thanks.

Davide