Search code examples
outlookvstooutlook-addin

VSTO Outlook: Show custom taskpane only in the compose, reply and forward windows


I have created a custom taskpane to show custom messages to the user. Now, I would like to show this taskpane only in compose, reply and forward windows. How can I achieve this?


Solution

  • Check that MailItem.Sent property is false before displaying your task pane.