Outlook Add-in Problem with Send To Mail Recipient

  • Thread starter Thread starter Norman
  • Start date Start date
N

Norman

I have developed an Outlook 2003 add-in using VB.net. The add-in
creates a toolbar from which a user can select an email security
classification, upon sending an email. The text selected is then
inserted into the body of the email.

The add-in works perfectly, except for ONE problem. I can't seem to
handle a request made from another application (e.g.: Windows
Explorer) via the "Send To Mail Recipient" menu item.

When someone selects this menu item, within my add-in, in the
IDTExtensibility2 OnStartupComplete event there is no: ActiveExplorer,
ActiveInspector, or ActiveWindow. BUT upon exiting, in
OnDisconnection I can see that there IS an ActiveWindow (still no
ActiveInspector or ActiveExplorer) !! How can I get notiifed about
the creation of this ActiveWindow? If I get that event, I think I can
handle the rest.

NOTE: If the add-in is enabled from within Outlook, I trap the
NewInspector event, but this doesn't work when using the Send To
method.
 
SendTo has a lot of problems. Even using Win32 API windows hooks to trap all
messages to create a new window might not work correctly in various versions
of Outlook. In playing around with this we've had a lot of problems with any
consistency in trying to work at all with SendTo.
 
Back
Top