Next and Previous Inspector events

D

David

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
 
K

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top