OnItemSend cancel problem

W

weirdbeard

I've written an Outlook add-in in VS.net 2005, which when a user sends
an email it pops up a custom dialog. There are several buttons on the
form, one of which is a cancel button. If the user pushes the cancel
button then the dialog closes and it should cancel sending the email
(i.e., present them back to their message). The way I am doing this is
by setting the cancel variable (passed in ByRef to OnItemSend which is
handling ItemSend event) which should cancel the sending.

I've verified that if the cancel button is pushed then the cancel var
is being set to true but unfortunately the email is still sent
regardless.

Can anyone think of what might be causing this? Please let me know if
you need any more info.

Matt
 
W

weirdbeard

Thanks - we're using Office 2003 so the bug should have been fixed
(according to that link) but there's some useful info in there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top