|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Addin to trap email item openHi
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 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 Show quoteHide quote "John" <info@nospam.infovis.co.uk> wrote in message news:OU8cywz%23JHA.5040@TK2MSFTNGP04.phx.gbl... > 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 > 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. -- Show quoteHide quoteDmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "John" <info@nospam.infovis.co.uk> wrote in message news:OU8cywz%23JHA.5040@TK2MSFTNGP04.phx.gbl... > 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 >
structures in VB.Net
vb.net and Ms SQL Connection ? Using "Me" Using WPF with a "normal" windows app Unable to connect to the remote server How to reference class properties using MyClass("PropertyName") Web server is not running ASP.NET version 1.1. DataGridView Event Serializing Custom Generic Collection (Of InterfaceType) Add Line Break to mail body |
|||||||||||||||||||||||