Inspector Open Event Not Firing, when form one-offs

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
 
R

Ryan

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top