View Single Post
  #2  
Old December 8th 06, 06:40 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Changes to Contact Item are not displayed if changed in New_Inspector-Event

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

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"cs" wrote in message
...
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