You have to wrap the item like so: ((ItemEvents_10_Event)mailItem).Close += new ItemEvents_10_CloseEventHandler(mailItem_Close);
in order to get the event to be created or removed. That way you can override what the current close action is.
regards,
Thaddaeus
"Jim" <rog_21[ at ]yahoo.com> wrote in message news:%23GwdaSNLGHA.3104[ at ]TK2MSFTNGP11.phx.gbl...
[Quoted Text] >I read http://www.pcreview.co.uk/forums/thread-1856258.php and explored >ItemsCB, but I am using an OOM that has the Activate() method but there is >no Activate event also there is no Close event on a MailItem. > I am having the normal problem where my toolbar does not show up on the > inspector. > Can someone help me? > Thanks
|