PC Review


Reply
Thread Tools Rate Thread

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

 
 
MIchael
Guest
Posts: n/a
 
      10th Jul 2008
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.
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      11th Jul 2008
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" <(E-Mail Removed)> wrote in message
news02CE384-0D0B-4ADA-860B-(E-Mail Removed)...
> 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.


 
Reply With Quote
 
MIchael
Guest
Posts: n/a
 
      12th Jul 2008
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" <(E-Mail Removed)> wrote in message
> news02CE384-0D0B-4ADA-860B-(E-Mail Removed)...
> > 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.

>
>

 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      14th Jul 2008
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" <(E-Mail Removed)> wrote in message
news:AC0C8491-206C-4353-83AC-(E-Mail Removed)...
> 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compose new message quits scrolling after 5 lines =?Utf-8?B?U2NvdHQgTC4=?= Microsoft Outlook Discussion 0 26th Jan 2007 06:06 PM
Read/Compose MailItem dorutzu Microsoft Outlook Program Addins 2 6th Apr 2005 10:04 AM
Upgrade from Wind. ME to Wind. 2000 Sandra Microsoft Windows 2000 Hardware 4 20th Oct 2003 04:36 PM
Upgrade Wind. ME to Wind. 2000 Sandra Microsoft Windows 2000 Setup 2 20th Oct 2003 11:09 AM
Upgrade from Wind.ME to Wind. 2003 Sandra Microsoft Windows 2000 New Users 0 19th Oct 2003 10:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:31 PM.