Help!

Event for email message select

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Add-Ins RSS
Next:  Outlook 2007 send/recieve  
Author Message
Saeed
External


Since: Aug 12, 2009
Posts: 6



PostPosted: Wed Aug 12, 2009 5:39 am    Post subject: Event for email message select
Archived from groups: microsoft>public>outlook>program_addins (more info?)

I am writing a plug-in for outlook using VSTO in which I want a toolbar
button to be enabled only when one or more email messages are selected, and
disabled/grayed otherwise. For which I need the event as soon as a message is
clicked, and as soon as a selected message is deselected. Does VSTO expose
such an event.
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Wed Aug 12, 2009 9:22 am    Post subject: Re: Event for email message select [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

VSTO exposes no Outlook events. The Outlook object model exposes the
Explorer.SelectionChange() event that returns a 1-based Selection
collection. Any items in that collection are selected. Use that on the
ActiveExplorer() object.

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


"Saeed" <Saeed.DeleteThis@discussions.microsoft.com> wrote in message
news:046C1365-5358-4E39-BF47-58CD4BCB9169@microsoft.com...
>I am writing a plug-in for outlook using VSTO in which I want a toolbar
> button to be enabled only when one or more email messages are selected,
> and
> disabled/grayed otherwise. For which I need the event as soon as a message
> is
> clicked, and as soon as a selected message is deselected. Does VSTO expose
> such an event.
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Add-Ins 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