Hi Frenz,
I have been stuck with a very worst problem, almost search entire web but did'nt get any solution.
My query is how do you set a default form (I have created that form) for an outlook folder through C#. I have been able to publish my form successfully through the code, however i can't set it default through the code so that whenever i create a new contact item in that folder it should use the form that i have created. I'm using Outlook 2003 & Visual Studio .Net 2003 with .Net 1.1 framework.
I know how to set the form as default form for th folder manually but not through C#.
If anyone knows the solution for the same request you to pls help me.
Thanks in advance.

How to Set Default Form for Outlook Folder through C#
coewar
Stephan Aiche
You need to set the PR_DEF_POST_MSGCLASS (0x36E5001E) and PR_DEF_POST_DISPLAYNAME (0x36E6001E) MAPI properties on the folder. See http://www.cdolive.com/cdo10.htm if you are not familiar with MAPI property tags.
You can work with MAPI tags with Outlook 2007 or, in earlier versions, with Redemption (http://www.dimastr.com/redemption/) or MAPI33. Helmut's technique from http://www.outlookcode.com/codedetail.aspx id=1112 probably could also be adapted.
mark_ramos
Hi iSahil,
It is helpful to remember that this forum is mainly for issues that directly pertain to the Visual Studio Tools for Office tools per se.
So you will be best served by posing this question to a forum or newsgroup wholly dedicated to application-specific issues such as yours. Here is a link to resources that will help you:
http://blogs.msdn.com/johnrdurant/archive/2005/12/07/vsto_outlook_resourcelist.aspx
Thanks
Dimitar
Hopi