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

  • Thread starter Thread starter cs
  • Start date Start date
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";
 
Try setting the properties in Inspector.Activate and save the change.
 
Back
Top