PC Review


Reply
Thread Tools Rate Thread

Addin to trap email item open

 
 
John
Guest
Posts: n/a
 
      2nd Jul 2009
Hi

I am trying to write an add-in in vs2008 for OL2003. Is there a way to trap
the item open event i.e. when a mail item is opened by user? This is to give
user choice of either opening the mail item as normal or allow the add-in to
do something else to the email?

Thanks

Regards


 
Reply With Quote
 
 
 
 
Ashutosh Jogdande
Guest
Posts: n/a
 
      3rd Jul 2009
Hi John,

You can achieve this by handling Application.ItemLoad event,
in this you can look for MailItem as an Objet type, if it is then handle
MailItem's Open event.

Thanks,
Ashutosh

"John" <(E-Mail Removed)> wrote in message
news:OU8cywz%(E-Mail Removed)...
> Hi
>
> I am trying to write an add-in in vs2008 for OL2003. Is there a way to
> trap the item open event i.e. when a mail item is opened by user? This is
> to give user choice of either opening the mail item as normal or allow the
> add-in to do something else to the email?
>
> Thanks
>
> Regards
>



 
Reply With Quote
 
Dmitry Streblechenko
Guest
Posts: n/a
 
      3rd Jul 2009
Look at the Application.Inspectors.NewInspector event. It will not let you
cancel the action.
You can also trap the MailItem.Open event (which is canceable), but that
means that you will need to set an an event handler on each selected
messages and track the selection by using the Explorer.SelectionChange
event.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"John" <(E-Mail Removed)> wrote in message
news:OU8cywz%(E-Mail Removed)...
> Hi
>
> I am trying to write an add-in in vs2008 for OL2003. Is there a way to
> trap the item open event i.e. when a mail item is opened by user? This is
> to give user choice of either opening the mail item as normal or allow the
> add-in to do something else to the email?
>
> Thanks
>
> Regards
>



 
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
Addin to trap email item open John Microsoft VB .NET 2 3rd Jul 2009 07:54 AM
Addin to trap email item open John Microsoft Outlook VBA Programming 2 3rd Jul 2009 07:54 AM
How to trap F1 from a menu item Johnny Microsoft C# .NET 3 12th Jan 2008 04:49 PM
Addin open an existing item in a custom form using FormsAdmin sublimese Microsoft Outlook Program Addins 0 16th May 2005 08:21 PM
Addin open an existing item in a custom form using FormsAdmin sublimese Microsoft Outlook Program Addins 0 16th May 2005 08:20 PM


Features
 

Advertising
 

Newsgroups
 


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