View Single Post
  #1  
Old March 8th 07, 02:41 AM posted to microsoft.public.outlook.program_forms
cynthia
external usenet poster
 
Posts: 23
Default forward event of Custom form

I developed a custom form in VSTO. And when forwarding the custom form, the
showing form is also the custom form. But I want to use the default message
form when forwarding.
The coding like following:
Dim oMsg As Outlook.MailItem
oMsg = Me.CreateItemFromTemplate(strPath + "test.oft")

oMsg.MessageClass and oMsg.Forward().MessageClass are the same which is
"IPM.Note".

oMsg.FormDescription.MessageClass and
oMsg.Forward().FormDescription.MessageClass are the same which is
"IPM.Note.CustomForm".

Further more, I have set the action property "forward" to the default
message form in test.oft mail template design. But its
formdescription.messageclass is the customform class.

How could I modify the forward() to use the default messageclass, and its
formdescription also use the default messageclass.

Thanks
Ads