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

modify contact when chages are not made to form region



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 19th 07, 02:31 PM posted to microsoft.public.outlook.program_addins
sd[_2_]
external usenet poster
 
Posts: 69
Default modify contact when chages are not made to form region

hello
I've shown separate Form region to contact form(not adjoining) through
VSTO addin.My Wrapper class for this form region is instantiated when
I navigate to that form region page.I make a copy of contact to other
folder in wrapper class code when user save & close it . The problem
is for existing contact. when user make changes to General page ,
Save & Close the contact without navigating to my Form region page ,
the copy doesn't get modified (since wrapper class doesn't
instantiated).How to reflect changes to copy of contact
when user save & closes contact without navigating to my form region
page?

thanks in advance
Ads
  #2  
Old December 19th 07, 08:30 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default modify contact when chages are not made to form region

Have your addin implements a handler for item.Write() so you can trap that
condition. You may also need to handle item.Close().

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"sd" wrote in message
...
hello
I've shown separate Form region to contact form(not adjoining) through
VSTO addin.My Wrapper class for this form region is instantiated when
I navigate to that form region page.I make a copy of contact to other
folder in wrapper class code when user save & close it . The problem
is for existing contact. when user make changes to General page ,
Save & Close the contact without navigating to my Form region page ,
the copy doesn't get modified (since wrapper class doesn't
instantiated).How to reflect changes to copy of contact
when user save & closes contact without navigating to my form region
page?

thanks in advance


  #3  
Old December 21st 07, 01:26 PM posted to microsoft.public.outlook.program_addins
sd[_2_]
external usenet poster
 
Posts: 69
Default modify contact when chages are not made to form region

thanks ken
I implemented Item_write in addin.But if the user opens multiple
inspector windows then
do I've to take multiple Contactobjects?
thanks again
On Dec 20, 1:30*am, "Ken Slovak - [MVP - Outlook]"
wrote:
Have your addin implements a handler for item.Write() so you can trap that
condition. You may also need to handle item.Close().

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm

"sd" wrote in message

...



hello
I've shown separate Form region to contact form(not adjoining) through
VSTO addin.My Wrapper class for this form region is instantiated when
I navigate to that form region page.I make a copy of contact to other
folder in wrapper class code when user save & close it . The problem
is *for *existing contact. when user make changes to General page ,
Save *& Close the contact *without navigating to my Form region page ,
the copy doesn't get modified (since wrapper class doesn't
instantiated).How to reflect *changes to copy of contact
when user save & closes contact without navigating to my form region
page?


thanks in advance- Hide quoted text -


- Show quoted text -


  #4  
Old December 21st 07, 02:20 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default modify contact when chages are not made to form region

The way to handle multiple open Inspectors (or multiple open Explorers) is
with a wrapper class and collection of wrapper classes. Each class handles
events for its own Inspector and therefore doesn't interfere with handling
any other Inspector.

I have sample VS2005 projects for shared and VSTO addins for Outlook 2007
posted on my Web site that implement Inspector and Explorer wrappers. The
samples are available in both C# and VB.NET and would give you an idea of
how to handle things like that. You can check them out at
http://www.slovaktech.com/outlook_2007_templates.htm if you want.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"sd" wrote in message
...
thanks ken
I implemented Item_write in addin.But if the user opens multiple
inspector windows then
do I've to take multiple Contactobjects?
thanks again

 




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
form region not shown properly sd[_2_] Outlook and VBA 4 October 17th 07 09:09 PM
Contact Icon Chages When Form Created Chaplain Doug Outlook - Using Forms 3 August 31st 07 03:18 PM
'adjoining' form region Alan Outlook - Using Forms 1 May 29th 07 05:42 PM
Communicate with a Form Region Vbasiccode Outlook - Using Forms 5 May 9th 07 10:51 PM
only one instance of form region is displayed Nikolas Outlook - Using Forms 4 October 6th 06 03:37 PM


All times are GMT +1. The time now is 08:53 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.