Event: Before Outlook close

407 Views Asked by At

I want to know, if it is possible to cancel the close event of Outlook. I use this event:

  ((Outlook.ApplicationEvents_11_Event)Application).Quit += new Outlook.ApplicationEvents_11_QuitEventHandler(ThisAddIn_Quit);

But this is too late.Outlook is already closed here. I want to ask the user if he is really sure to close Outlook. Are there any possibilities to cancel the Outlook Close event ? Thx.

1

There are 1 best solutions below

0
On BEST ANSWER

No. There is no BeforeClose like event in Outlook interop.