I am creating an add-in for Outlook 2007 and VSTO SE that logs appointments with a specific "Client" (=company) and "Project" fields and saves the data into an SQL server for billing and reporting purposes.

I have almost finished the part of the appointment form.

Now I need to work on a "Client Information" form. I want it to look like all other forms in Outlook (with fluent ribbon and all the rest.

The easiest way to do this, I believe would be to hook to the Contact Form and use form region to replace the content of the form. This brings up a few questions:

1. How do I initiate a form like that from a button

2. Is it possible to change the Windows Caption not to read "Contact"

3. Do I need to create a custom form in Outlook first for that

4. How will that affect deployment of the add-in

5. I would really rather not do anything in Outlook and make it happen programatically is this possible at all


Re: Visual Studio Tools for Office Custom Form in Outlook 2007

Sue Mosher - Outlook MVP

This should all be possible with form regions. You'd set up a replace or replaceall region with the message class you want to use, e.g. IPM.Contact.ClientInfo

1) Use the add method on the target's folder's Items collection, passing the message class (IPM.Contact.ClientInfo) as the parameter.

2) It should use the display name for the replace region.

3) You have to use Outlook 2007 to create the form region(s). You do not need a published custom form.

4) Deploy the region(s) as part of the add-ins resoucres.

5) Yes, see above.