Refresh mailitem

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?
 
K

Ken Slovak - [MVP - Outlook]

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.
 
K

Ken Slovak - [MVP - Outlook]

You can't without side effects, for example changing
ActiveExplorer.CurrentFolder to some other folder and then back again.
 

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