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?
Check that MailItem.Sent
property is false before displaying your task pane.