S
Snixtor
I have developed a very simple, small Outlook 2007 add-in using VSTO3, and am
having issues with "unsaved changes" whenever I make programmatic changes to
the Outlook item.
I have a saved item, say, an email in "Drafts". When the user clicks a
button in the ribbon it changes the subject of the email. The user then
attempts to close the email and appropriately enough they are prompted
whether or not they want to save changes. Fair enough. The issue though is
that when they open the mail item a second time and make NO changes (and
don't click on that button), when they go to close the mail item it *again*
prompts if they want to save changes, though they have made none! Again when
they attempt to close Outlook itself they are prompted whether they want to
save changes.
What's going on here? Why don't my programmatic changes to the mail item
appear to be getting properly discarded until Outlook is completely shut down?
having issues with "unsaved changes" whenever I make programmatic changes to
the Outlook item.
I have a saved item, say, an email in "Drafts". When the user clicks a
button in the ribbon it changes the subject of the email. The user then
attempts to close the email and appropriately enough they are prompted
whether or not they want to save changes. Fair enough. The issue though is
that when they open the mail item a second time and make NO changes (and
don't click on that button), when they go to close the mail item it *again*
prompts if they want to save changes, though they have made none! Again when
they attempt to close Outlook itself they are prompted whether they want to
save changes.
What's going on here? Why don't my programmatic changes to the mail item
appear to be getting properly discarded until Outlook is completely shut down?