I need an event/message/notification in an outlook addin, which fires when a new mail form is open by an user? I don't know how to determine which window is opened.
A:
You can make use of Inspectors.newInspector event which is raised when you open any outlook item in a new window. In the event handlerfor this event, you can check if the Inspector.CurrentItem type is Outlook mail and mail item has isSent as false that means it is an outlook mail item in edit/compose mode.
Kapilg
2010-09-05 17:19:15