View Single Post
  #2  
Old March 29th 07, 10:24 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Next and Previous Inspector events

Actually that's not really the case. In some versions of Outlook you do get
a NewInspector event when Next or Previous are used. In some you don't.
Basically the fix that fires NewInspector was added in Outlook 2002 SP2, so
anything later than that should fire NewInspector.

The easiest thing to do is have users update to SP2 or later if they are
running Outlook 2002, which is pretty old anyway.

See http://support.microsoft.com/?kbid=321326 for a little more information.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"David" wrote in message
...
Outlook 2002 and above.
VS 2005
No VSTO
Developing in C# (can't find a C# forum instead of VB)

I have found some samples for adding buttons to Inspectors and operating
on
the mail message.

Though I have found lots of messages about how the Next (CTRL-) and
Previous (CTRL-) do not fire any events. Therefore your button acts on
the
previous email opened instead of the currently viewed message.

Can anyone point me to a sample (C# preferred) that works around this in
some way.

I have started down the root of registering for the Open and the Read
events. The Open to setup my buttons and the Read to perhaps grab the new
object.

Suggestions welcome.

Thanks,
Dave


Ads