A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Refresh mailitem



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 19th 08, 09:09 AM posted to microsoft.public.outlook.program_addins
Ivica Muruzovic
external usenet poster
 
Posts: 12
Default Refresh mailitem


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?

Ads
  #2  
Old February 19th 08, 02:12 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Refresh mailitem

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

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?


  #3  
Old February 19th 08, 02:46 PM posted to microsoft.public.outlook.program_addins
Ivica Muruzovic
external usenet poster
 
Posts: 12
Default Refresh mailitem

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.

  #4  
Old February 19th 08, 03:04 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Refresh mailitem

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
...
Ok, but how can I force Outlook to do that immediately


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Refresh Problem? Kenny Outlook - Using Forms 5 August 16th 07 03:47 PM
How can I refresh all calendars quickly? David Samuell Outlook - Calandaring 0 March 28th 07 02:14 AM
refresh the currently selected item? Jiho Han Outlook and VBA 4 June 2nd 06 02:23 PM
How can I create a MailItem that displays like a received MailItem ? Clive Outlook - Using Forms 0 February 27th 06 04:14 PM
OWA refresh with IE FOAD Outlook - General Queries 0 January 18th 06 06:25 PM


All times are GMT +1. The time now is 04:07 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.