View Single Post
  #1  
Old December 8th 06, 11:04 AM posted to microsoft.public.outlook.program_addins
cs
external usenet poster
 
Posts: 1
Default Changes to Contact Item are not displayed if changed in New_Inspector-Event

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";


Ads