Inspector Open Event Not Firing, when form one-offs

  • Thread starter Thread starter Kumaran
  • Start date Start date
K

Kumaran

Hello Everyone

need some help on this problem. I have designed a
custom form which i invoke from a COM Addin.

In the addin i have event handlers registered for
NewInspector Event. Its being fired properly for all
other times.

Whenever, I open the custom form and save and item
through it, The event handler stops being invoked.

Can anyone clue me in on this one

Regards
K
 
This sounds similar to a problem I was having recently. In your Add-In
code, make sure you are calling the .Close method of the item before you
close your custom form. The .Close method takes one parameter, telling
outlook what to do in the case of unsaved changes. If you have already
taken care of saving, just pass olDiscard. See the MSDN documentation
for Outlook development for more information on the Item.Close method.

If you don't call the .Close method, Outlook thinks the item is still
open, and this causes a large number of events to stop firing.
 
Back
Top