Custom Forms in Outlook

  • Thread starter Thread starter Jim
  • Start date Start date
J

Jim

I want to create a new custom form for use within my C# outlook add-in.
Do I need to create the form myself in Outlook and then somehow
distribute with my add-in?
How do I go about this process?
Thanks so much
 
Also how do I get items to use this form.
I really want to create a new folder in outlook and have items in this
folder use the new messageclass and new inspector form.
Thanks
 
Create the new form with Outlook's form designer, then include code in your project to publish the form using the FormDescription.PublishForm method. (See http://www.outlookcode.com/d/distributeforms.htm)

To make a form the default for a folder, use CDO 1.21 (not officially supported in .NET) or Redemption to set the folder's PR_DEF_POST_MSGCLASS (0x36E5001E) and PR_DEF_POST_DISPLAYNAME (0x36E6001E) properties. If you're not familiar with MAPI property tags, see http://www.cdolive.com/cdo10.htm

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Thanks Ken, so as I understand it. I can design a form in Outlook, then
distribute that with my addin. Then anytime I add a new item I can use
that form and publish it. So this will create a new messageclass which I
could assign to an object.What if upon starting my add-in I want to
create a new folder and have this folder use my form and also have the
default form be the form I designed. Also do the messageclasses have to
extend from existing. So do I have to have IPM.Contact.MyForm or can I
have IPM.MyForm ?
Thanks so much.
 
You can only add a completely new message class using Extended MAPI and C++
or Delphi, not a task I'd even want to consider. So IPM.Contact.Whatever it
is.

See the information Sue also posted about publishing a form using code and
changing a folder default message class.
 
Back
Top