S
Stuart Langridge
I'm writing an Outlook addin that pops up a form when the user hits "Send"
while composing an email. Once the form is completed, I would like to have
the form close and then the default action for the button (sending the mail)
take place. Can I do this? I can, for example, directly call the MailItem's
Send method, but that doesn't do the same thing as clicking the Send button
in the Inspector -- for example, an empty "To" field is not trapped. I don't
want to have to replicate everything that Outlook does when clicking Send in
my addin if I can avoid it -- how do I override a CommandButton to do my
custom action and then do its default action?
Stuart Langridge
Information Architect
Mills & Reeve
while composing an email. Once the form is completed, I would like to have
the form close and then the default action for the button (sending the mail)
take place. Can I do this? I can, for example, directly call the MailItem's
Send method, but that doesn't do the same thing as clicking the Send button
in the Inspector -- for example, an empty "To" field is not trapped. I don't
want to have to replicate everything that Outlook does when clicking Send in
my addin if I can avoid it -- how do I override a CommandButton to do my
custom action and then do its default action?
Stuart Langridge
Information Architect
Mills & Reeve