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

catching changes to the To/CC/BCC lines in a mailitem compose wind



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 10th 08, 07:09 PM 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 wind

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.
  #2  
Old July 11th 08, 02:50 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default catching changes to the To/CC/BCC lines in a mailitem compose wind

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.


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



  #4  
Old July 14th 08, 03:33 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default catching changes to the To/CC/BCC lines in a mailitem compose

Deletions of what don't count, values from properties or what?

I don't understand your question. Is the form an Outlook form or a Windows
form?

Code in an Outlook form is VBScript code and can't be called from outside
the form.

Show the code you're talking about that references your forms controls and
fails.

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


 




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
item_close: catching prompt results trondhuso Outlook and VBA 5 September 25th 07 03:55 PM
Outlook not catching most of junk mail coopfab Outlook - Installation 0 February 13th 07 06:44 PM
Catching Spam with Rules Dave Outlook - General Queries 6 November 8th 06 04:05 AM
Outlook shows the same name multiple times in Select Name Wind Ken Wigle Outlook - Using Contacts 0 July 21st 06 09:16 PM
How can I create a MailItem that displays like a received MailItem ? Clive Outlook - Using Forms 0 February 27th 06 05:14 PM


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