G
__geof__
Hi.
I have written a little AddIn for Outlook 2007 and I try to adapt it to
Outlook 2003. It is looking good but I have a problem when closing the
MailItem. Here is a sample of the code:
Case Windows.Forms.DialogResult.Yes
Cancel = True
currentMailItem.Close(1)
Exit Select
Case Windows.Forms.DialogResult.No
Cancel = False
Exit Select
It says that I cannot close within ItemSend. I looked around and I also
tried with currentMailItem.GetInspector.Close(1) without any luck (just
another error).
Anyone has an idea?
Tx
Geoffrey
I have written a little AddIn for Outlook 2007 and I try to adapt it to
Outlook 2003. It is looking good but I have a problem when closing the
MailItem. Here is a sample of the code:
Case Windows.Forms.DialogResult.Yes
Cancel = True
currentMailItem.Close(1)
Exit Select
Case Windows.Forms.DialogResult.No
Cancel = False
Exit Select
It says that I cannot close within ItemSend. I looked around and I also
tried with currentMailItem.GetInspector.Close(1) without any luck (just
another error).
Anyone has an idea?
Tx
Geoffrey