msoutlook.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Refresh mailitem

 
Post new topic   Reply to topic    msoutlook.org Forum Index -> Outlook Programs Add-Ins
Author Message
Ivica Muruzovic



Joined: 19 Feb 2008
Posts: 2

PostPosted: Tue Feb 19, 2008 3:09 pm    Post subject: Refresh mailitem Reply with quote

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?

Archived from group: microsoft>public>outlook>program_addins
Back to top
View user's profile Send private message
Ken Slovak - [MVP - Outlo



Joined: 12 Aug 2007
Posts: 405

PostPosted: Tue Feb 19, 2008 2:12 pm    Post subject: Re: Refresh mailitem Reply with quote

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Ivica Muruzovic" wrote in message @4ax.com...
>
> 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?
>
Back to top
View user's profile Send private message
Ivica Muruzovic



Joined: 19 Feb 2008
Posts: 2

PostPosted: Tue Feb 19, 2008 8:46 pm    Post subject: Re: Refresh mailitem Reply with quote

Ok, but how can I force Outlook to do that immediately

On Tue, 19 Feb 2008 09:12:45 -0500, "Ken Slovak - [MVP - Outlook]"
wrote:

>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.
Back to top
View user's profile Send private message
Ken Slovak - [MVP - Outlo



Joined: 12 Aug 2007
Posts: 405

PostPosted: Tue Feb 19, 2008 3:04 pm    Post subject: Re: Refresh mailitem Reply with quote

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

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Ivica Muruzovic" wrote in message @4ax.com...
> Ok, but how can I force Outlook to do that immediately

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Mailitem save as getting Operation Failed I created a OutLook Addinns using VSTO 2005 C# 2.0. the functionality is on right-click on any mail item, save onto sharepoint document lib. It's working fine when the subject got simple text. If the subject got special CHRs or if the mail was replied or

vb6 DoEvents locks up Outlook 2007 when new mailitem is open I have been using vb6 to build a COM Add-in for Outlook. There are parts of the code that run in a long loop and require a DoEvents. In the case of Outlook 2007, all is fine until a new mailitem is opened and user starts typing an email. Once the user sta

OWA and auto-refresh? Is there nothing in OWA that performs an I use OWA when I work from home, so that I can monitor my office email. The pain of this is that I have to manually refresh the Inbox in order to catch new mails throughout the day. It seems like a

"Refresh" problems with using Outlook COM interface We've been running into the following bug. We have a program that uses the Outlook and the CDO COM interfaces. It does most things through the Outlook interface, but it does a few things through the CDO interface, and it maintains both the Outlook NameSp

Can I refresh when I "Empty Deleted Folder?" I wrote an email and when asked if I wanted to Save the Draft when I sent it I said NO then I deleted my entire Empty Deleted Folder. Yes, that was done. Is this email lost or can I find it somewhere else? Thanks
Post new topic   Reply to topic    msoutlook.org Forum Index -> Outlook Programs Add-Ins All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group