Custom Form in C#

M

Mike

I am looking for a basic example showing how to display a custom form in a
COM add-in in C#.

I have created a custom form: "IPM.Appointment.PC"

I wish to display it in an event handler which I have created. The handler
is called when a user clicks on a new menu item in the Action menu (I have
the menu item and the handler working).

Basically, I want to create an appointment item and have my custom form
displayed instead of the normal appointment form.

Thanks,

Mike
 
H

Helmut Obertanner

Hi,

if you have the Custom Form published, you could create the Item by your
MessageClass.

Use the Folder.Items.Add Method:
Example for a ContactItem:
myContact = (Ol.ContactItem )myContactsFolder.Items.Add
("IPM.Contact.MyContact" );

If you want to create a Item from an .oft File Template you must use the
Application.CreateItemFromTemplate() Function.

myOutlookApplication.CreateItemFromTemplate ("C:\test.oft", myFolder);

Regards, Helmut Obertanner
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top