A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #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
  #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";



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
catch the mail item on_focus event john Outlook and VBA 1 September 28th 06 12:33 PM
Item Open event does not occurs every time sfradel Add-ins for Outlook 1 September 2nd 06 04:33 PM
Item locked due to DST and changed time zone. donaldavis Outlook - Calandaring 2 May 2nd 06 08:02 PM
Item Move event AtulSureka Outlook and VBA 1 February 24th 06 01:33 PM
Handling Task Item Delete Event AtulSureka Outlook - Using Forms 0 January 24th 06 10:25 AM


All times are GMT +1. The time now is 09:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.