View Single Post
  #3  
Old July 12th 08, 01:31 AM posted to microsoft.public.outlook.program_addins
Michael
external usenet poster
 
Posts: 165
Default catching changes to the To/CC/BCC lines in a mailitem compose

Thank you for your help. I got this working now (only deletions don't count
as PropertyChanges apparently, because that doesn't fire the event.

I do have another question now (probably more generic VB related).

I have the item_PropertyChange event in my add-in's main class. I'm trying
to interact with controls that are part of my form area, or Subs that are
part of my form class - but for some reason I dont seem to be able to do so.
Code that references my form controls seems to be ignored upon execution. It
doesn't even fire off any errors. What am i doing wrong... what's the best
way to call a sub that's part of a form from my main class (or put the sub in
my main class while referencing my form based controls)?

Thanks so much,

Michael.

"Ken Slovak - [MVP - Outlook]" wrote:

There are no events for changes to the Recipients collection, so you best
bet is to handle the item.PropertyChange() event and look for changes to To,
CC and BCC. The name of the property being changed will be passed to
PropertyChange() as a string.

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


"MIchael" wrote in message
news
Hi,

I'm trying to catch changes (additions/deletions) to the To, CC and BCC
lines in a mailitem's compose window from within my add-in, but i'm having
a
hard time figuring out how to do this... Any hints/tips are more than
appreciated!!

Thank you in advance,

Michael.



Ads