I am working on an Outllok adding built with Add-in Express. I am trying to show a modal progress dialog which blocks only the current mail composer/editor window, so that user can still use Outlook while this dialog is shown, but he should not be able to edit the current email. I tried using
dialog.ShowDialog(new WindowWrapper(ADXAddinModule.CurrentInstance.GetOutlookWindowHandle(mail.GetInspector)));
but it blocks whole Outlook. WindowWrapper
is just a simple class implementing System.Windows.Forms.IWin32Window
. Is there a way to achieve that behavior?