Which event is fired??

C

cyan21

hello,

which event is fired when you clicked on button "No" in the message box
displayed after modifications on an item ?

for instance, I create an appointment and fill its fields. Then I
decide to cancel it by closing the window with the "X" button ( right
top corner of the window).
A message box appears and asks me if I want to quit and save the
modifications I've made.
If I choose "Yes", write event is fired but which one is fired for "No"
?

thanks.

yann
 
T

Tim Pulley

Though no event is fired when the "No" dialog button is pressed,.there are
events that fire when an Item and Inspector are closed. As always in
Outlook, there is no consistency. Different forms, editors and actions fire
different events. Here are a few examples:

* When Outlook editors are used the Inspector's Close event fires when the
message is closed but not when it is sent and the Inspector's Deactivate
event always fires.

* When Word is the editor the Inspector's Close event always fires but the
Deactivate event is never called.

* When a Meeting Request is closed the Item's Close and the Inspector's
Deactivate events fire but the Inspector's Close event is never called.

You should also test against the major and minor versions of Outlook that
you need to support. It's very likely that there will be some
inconsistencies between the different versions

BTW, You can use OutlookSpy to see events firing in realtime.
 

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