Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a custom Search Folder that displays a filtered list of contact items.

Is it possible to develop a custom button that has the same feature as the "New Message to Contact" button does in the Contacts View and can be used on the searched contact items in my custom Search Folder?

It could be a custom toolbar, ribbon, or context menu button, as long as I can use that functionality.
I'm using Outlook 2007, Visual Studio 2010 using C#.

If I'm in the Contacts panel, the "New Message To Contact" button would allow me to click when I select one or multiple contact items.
(see this screenshot[^])

From my understanding, normally they are two ways to view the search folders:
1. from the Mail panel (see screenshot[^])
2. click the Folder List button (see screenshot[^])

I already setup an AdvancedSearch method to let my custom Search Folder's searched result only display contact items, so all of my items in my custom Search Folder are Contacts type, not Mail, nor Tasks, or any else.
However, the view (display mode) of those contact items is different than they are displayed in the Contacts panel (see this screenshot[^]), causing me not able to click the "New Message to Contact" button anymore.

My goal is to be able to select all of my searched contact items that are in my custom Search Folder and be able click a custom button that has the same functionality as the "New Message to Contact" does so I can send an email to all of my selected contacts.
Posted
Updated 26-Jul-11 8:28am
v2
Comments
Sergey Alexandrovich Kryukov 26-Jul-11 14:37pm    
Are you show you want to develop a ***button***? :-)
Normally the code handling button click is not part of the button code.
--SA
Daniel0318 26-Jul-11 14:43pm    
It would be nice if it could be a button. or it could be a custom toolbar, ribbon, or context menu button, as long as I can use that functionality.
I just would like to know how to get this functionality working on my searched Contact items.

Could you recommend any possible solution or reference?
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900