I am developing an Outlook 2007 Add-In using Visual Studio 2010, C#. The goal is to be able to select multiple contact folders, and each folder has multiple contacts within.
In the example below,
I have two contact folders: Agency-WEST and Agency-EAST. Both contact folders have multiple contact items within.
Right now, if I want to send an e-mail to all people in my both contact folders, I have to go to the Agency-WEST folder first, select all contact items, then click the "New Message to Contact button" to have their email addresses appear in the To section of the Message window.
However, if I just use my mouse to click/select the Agency-WEST contact folder, the "New Message to Contact" won't be visible to click.
What I would like to do in my AddIn is to first be able to select/click one contact folder, then click the "New Message to Contact" button, then all contact items' email addresses inside that contact folder will be displayed onto the To section of the Message window.
After that, the second step is to be able to select more than one contact folders by holding down the Ctrl button, then click the "New Message to Contact" button, then all selected contact folders' e-mail addresses will be displayed onto the To section of the Message window.
From my understanding is that I cannot select more than 1 folder. Is there any alternatives to work this around?