> Are you instantiating the item you want to handle Unload for in
> Application_ItemLoad?
>
> Unload won't necessarily fire when an item is closed, so if your handler is
> going out of scope on Close you'd never get the event. It fires at some
> point when Outlook unloads the item from it's in memory cache. That could be
> seconds or minutes after closing the item. Items are "loaded" not only when
> opening them but even by their being displayed in the reading pane.
>
> --
> Ken Slovak
> [MVP - Outlook]
>
http://www.slovaktech.com> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
>
http://www.slovaktech.com/products.htm>
>
> "Tim Pulley" <Tim Pulley[ at ]discussions.microsoft.com> wrote in message
> news:69C299CD-C4C3-4E4E-B629-8860CB3F0270[ at ]microsoft.com...
> > I'm using VS 2K5, C#, VSTO SE and Outlook 2K7. I've created an Item event
> > handler class and hooked it up to the following events: AttachmentAdd,
> > Save,
> > PropertyChange, Close and Unload. All the events fire as expected except
> > Unload. I've searched but I haven't found any info about a problem with
> > this
> > event. I don't think I'm doing anything wrong but here's the code to hook
> > the
> > Unload event just in case.
> >
> > public class OLItemEventsHandler
> > {
> > protected Object m_oOLItem;
> > protected Outlook.ItemEvents_10_Event m_ItemEvents;
> > protected Outlook.ItemEvents_10_UnloadEventHandler
> > m_ItemEventsHandler_Unload;
> >
> >
> > public OLItemEventsHandler(object oOLItem)
> > {
> >
> > m_oOLItem = oOLItem;
> >
> > m_ItemEvents = (Outlook.ItemEvents_10_Event) oOLItem;
> >
> > m_ItemEventsHandler_Unload = new
> > Microsoft.Office.Interop.Outlook.ItemEvents_10_UnloadEventHandler(itemEvent_Unload);
> >
> > m_ItemEvents.Unload += m_ItemEventsHandler_Unload;
> > }
> >
> >
> > protected void itemEvent_Unload()
> > {
> > Trace.WriteLine("Item Unload Event Fired");
> > }
> >
> > }
> >
> >
>
>