Changes to Contact Item are not displayed if changed in New_Inspector-Event

C

cs

Hi,

I change some default values for a contact Item in the NewInspector event.
They are not displayed, if they are on the first page of my custom form.
They are displayed if they are on an other page.

(VSTO C# Outlook 2003)
Her some parts from the code:
insps = this.Inspectors;

insps.NewInspector += new
Outlook.InspectorsEvents_NewInspectorEventHandler(Inspector_New);

void Inspector_New(Outlook.Inspector ins)

Outlook.ContactItem c = ins.CurrentItem as Outlook.ContactItem;

c.CompanyName = "Test";
 
K

Ken Slovak - [MVP - Outlook]

Try setting the properties in Inspector.Activate and save the change.
 

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