Refresh mailitem

  • Thread starter Thread starter Ivica Muruzovic
  • Start date Start date
I

Ivica Muruzovic

I using Outlook 2007 and vs2008 outlook-addin.

In this addin when user click on some mail message (there is some
criteria for which type of mail message, but that is not matter) I add
some attachement in mailItem.

Problem is that new attachment is not visible in mailItem until I
select some other mailItem and then return on previus item) in other
words I have "REFRESH PROBLEM" with mailItem.

Any help?
 
That sounds rather normal. Are you releasing all object references to the
item? In any case that's a very common thing to happen when making changes
in code to an item, where the UI doesn't refresh the view for a period of
time or until you switch items or even folders.
 
You can't without side effects, for example changing
ActiveExplorer.CurrentFolder to some other folder and then back again.
 
Back
Top