(Msg. 1) Posted: Tue Sep 23, 2008 10:10 am
Post subject: Refresh outlook folders after mailAdd event fires Archived from groups: microsoft>public>outlook>program_vba (more info?)
I have developed an add in(plug in) for Outlook 2003 using VSTO and c# .net
2005.
The addin captures all incoming emails and processes them. As they are
processed, I update
ewMail.FlagStatus = Outlook.OlFlagStatus.olFlagComplete which tells me the
email was processed. This is also a good visual for the customer to see that
the add in is working. The flag does not get refreshed on the form unless you
reselect the inbox folder. Is there any way to refress the outlook folder
from an outlook add in?
(Msg. 2) Posted: Tue Sep 23, 2008 2:24 pm
Post subject: Re: Refresh outlook folders after mailAdd event fires [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Only by making another folder current and then going back again.
"MooseMan" <mooseman RemoveThis @discussions.microsoft.com> wrote in message
news:AFE2F97A-3069-45F2-B7EE-5C63E4999BB1@microsoft.com...
>I have developed an add in(plug in) for Outlook 2003 using VSTO and c# .net
> 2005.
> The addin captures all incoming emails and processes them. As they are
> processed, I update
> ewMail.FlagStatus = Outlook.OlFlagStatus.olFlagComplete which tells me the
> email was processed. This is also a good visual for the customer to see
> that
> the add in is working. The flag does not get refreshed on the form unless
> you
> reselect the inbox folder. Is there any way to refress the outlook folder
> from an outlook add in?
>
> --
> Moose Man
(Msg. 3) Posted: Fri Sep 26, 2008 10:51 am
Post subject: Re: Refresh outlook folders after mailAdd event fires [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
How can I access the main form from the add in? Right now I have a reference
to the folders via the following command
Outlook.MAPIFolder me = mapiNamespace.GetDefaultFolder(
Outlook.OlDefaultFolders.olFolderOutbox ) as Outlook.MAPIFolder;
Any help would be greatly appreciated, Ken.
--
Moose Man
"Ken Slovak - [MVP - Outlook]" wrote:
> Only by making another folder current and then going 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 >
>
> "MooseMan" <mooseman.RemoveThis@discussions.microsoft.com> wrote in message
> news:AFE2F97A-3069-45F2-B7EE-5C63E4999BB1@microsoft.com...
> >I have developed an add in(plug in) for Outlook 2003 using VSTO and c# .net
> > 2005.
> > The addin captures all incoming emails and processes them. As they are
> > processed, I update
> > ewMail.FlagStatus = Outlook.OlFlagStatus.olFlagComplete which tells me the
> > email was processed. This is also a good visual for the customer to see
> > that
> > the add in is working. The flag does not get refreshed on the form unless
> > you
> > reselect the inbox folder. Is there any way to refress the outlook folder
> > from an outlook add in?
> >
> > --
> > Moose Man
>
>
(Msg. 4) Posted: Fri Sep 26, 2008 2:56 pm
Post subject: Re: Refresh outlook folders after mailAdd event fires [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
What main form?
Your reference is to the Outbox, however you shouldn't be messing with items
in the Outbox..
Let's say you have 2 folder references: folder A and folder B, A is the
current folder and Outlook.Application is oApp.
"MooseMan" <mooseman DeleteThis @discussions.microsoft.com> wrote in message
news:C1A52696-DE73-4B36-834E-5620CE9B7535@microsoft.com...
> How can I access the main form from the add in? Right now I have a
> reference
> to the folders via the following command
> Outlook.MAPIFolder me = mapiNamespace.GetDefaultFolder(
> Outlook.OlDefaultFolders.olFolderOutbox ) as Outlook.MAPIFolder;
>
> Any help would be greatly appreciated, Ken.
>
> --
> Moose Man
(Msg. 5) Posted: Fri Sep 26, 2008 2:56 pm
Post subject: Re: Refresh outlook folders after mailAdd event fires [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Ken, tks for the input.
By 'main form; I meant the current folder.
I am processing events from the inbox folder.
To solve the problem I performed the following code:
of course mapiNamespace,Holdme(pointer to SendItems), and inbox were
instantiated when the dll was loaded within default constructor.
Thanks Ken for all your valued help!
--
Moose Man
"Ken Slovak - [MVP - Outlook]" wrote:
> What main form?
>
> Your reference is to the Outbox, however you shouldn't be messing with items
> in the Outbox..
>
> Let's say you have 2 folder references: folder A and folder B, A is the
> current folder and Outlook.Application is oApp.
>
> Outlook.Explorer exp = oApp.ActiveExplorer(); //get ActiveExplorer
> exp.CurrentFolder = B;
> exp.CurrentFolder = A;
>
> That moves the focus from A to B and 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 >
>
> "MooseMan" <mooseman RemoveThis @discussions.microsoft.com> wrote in message
> news:C1A52696-DE73-4B36-834E-5620CE9B7535@microsoft.com...
> > How can I access the main form from the add in? Right now I have a
> > reference
> > to the folders via the following command
> > Outlook.MAPIFolder me = mapiNamespace.GetDefaultFolder(
> > Outlook.OlDefaultFolders.olFolderOutbox ) as Outlook.MAPIFolder;
> >
> > Any help would be greatly appreciated, Ken.
> >
> > --
> > Moose Man
>
>
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can 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