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

Event for email message select



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 12th 09, 01:39 PM posted to microsoft.public.outlook.program_addins
Saeed
external usenet poster
 
Posts: 13
Default Event for email message select

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.
Ads
  #2  
Old August 12th 09, 02:22 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Event for email message select

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" wrote in message
...
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.


 




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
Outlook Create Message, Select To, Select Conacts- ...No Sort Opti Hyny Outlook - Using Contacts 1 July 9th 09 08:04 PM
select e-mail account for sending message BBran Outlook - General Queries 12 August 3rd 07 04:42 PM
Select all message body and delete Geminist Outlook and VBA 3 February 23rd 07 03:34 PM
Cant select to address from contacts on new message [email protected] Outlook - Using Contacts 2 March 3rd 06 04:51 PM
How to make Outlook 2003 select the oldest message in its inboxfolder? Phillip Pi Outlook - General Queries 0 January 9th 06 06:19 PM


All times are GMT +1. The time now is 08:40 AM.


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