PC Review


Reply
Thread Tools Rate Thread

Address fields of an Inspector

 
 
Gabriel Weilenmann
Guest
Posts: n/a
 
      3rd Oct 2005
Hello NG,

I'd like to execute Code based the actual Inspector address fields (To, CC,
BCC).

I tried the PropertyChange Event of the MailItem. Unfortunately it only
fires when the MailItem is saved so I can't use that one.

Is there any way to get "up do date" address fields?
Some Textbox.Validate or Textbox.Change Event would be great.

Thanks for your help,
Gabriel


 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      4th Oct 2005
One trick is to add a custom formula field to the Form and use To, Cc, or Bcc (or all 3) as part of the formula. CustomPropertyChange will then fire for that custom field as addresses are added or resolved.

Note, though, that a single recipient addition or change will likely produce multiple CustomPropertyChange events, making it very hard to handle. I usually just do any address processing in Item_Write or Item_Send.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Gabriel Weilenmann" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
> Hello NG,
>
> I'd like to execute Code based the actual Inspector address fields (To, CC,
> BCC).
>
> I tried the PropertyChange Event of the MailItem. Unfortunately it only
> fires when the MailItem is saved so I can't use that one.
>
> Is there any way to get "up do date" address fields?
> Some Textbox.Validate or Textbox.Change Event would be great.
>
> Thanks for your help,
> Gabriel
>
>

 
Reply With Quote
 
Michael Bauer
Guest
Posts: n/a
 
      4th Oct 2005
Am Mon, 3 Oct 2005 23:37:44 +0200 schrieb Gabriel Weilenmann:

Gabriel, OL doesnīt offer those events. Why donīt you use the
ItemChange event? You can roll every changes back if itīs necessary.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook

> Hello NG,
>
> I'd like to execute Code based the actual Inspector address fields

(To, CC,
> BCC).
>
> I tried the PropertyChange Event of the MailItem. Unfortunately it

only
> fires when the MailItem is saved so I can't use that one.
>
> Is there any way to get "up do date" address fields?
> Some Textbox.Validate or Textbox.Change Event would be great.
>
> Thanks for your help,
> Gabriel

 
Reply With Quote
 
Gabriel Weilenmann
Guest
Posts: n/a
 
      4th Oct 2005
Hi Sue

This seems to be the right way for me. Thank you so much!

Gabriel


"Sue Mosher [MVP-Outlook]" <(E-Mail Removed)> schrieb im Newsbeitrag
news:%(E-Mail Removed)...
One trick is to add a custom formula field to the Form and use To, Cc, or
Bcc (or all 3) as part of the formula. CustomPropertyChange will then fire
for that custom field as addresses are added or resolved.

Note, though, that a single recipient addition or change will likely
produce multiple CustomPropertyChange events, making it very hard to
handle. I usually just do any address processing in Item_Write or
Item_Send.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Gabriel Weilenmann" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hello NG,
>
> I'd like to execute Code based the actual Inspector address fields (To,
> CC,
> BCC).
>
> I tried the PropertyChange Event of the MailItem. Unfortunately it only
> fires when the MailItem is saved so I can't use that one.
>
> Is there any way to get "up do date" address fields?
> Some Textbox.Validate or Textbox.Change Event would be great.
>
> Thanks for your help,
> Gabriel
>
>



 
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
Inspector wrapper and Inspector close not fireing marcus.lambert@gmail.com Microsoft Outlook Program Addins 1 20th Jun 2008 01:53 PM
Help! Inspector.Close is fired before Inspector.Activate handler finishes Sergey Anchipolevsky Microsoft Outlook Program Addins 8 9th Feb 2006 09:51 AM
How are LDAP fields mapped to Address Book fields? =?Utf-8?B?bWFyZ29s?= Microsoft Outlook Contacts 2 18th Dec 2005 10:52 AM
Inspector wrapper and Inspector::OnClose event Henry Gusakovsky Microsoft Outlook Program Addins 2 27th May 2004 05:08 PM
Minimize an Inspector over another Inspector. George Microsoft Outlook Program Addins 4 27th May 2004 08:39 AM


Features
 

Advertising
 

Newsgroups
 


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