Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: Accessing Inspector events in OutlookApi

$
0
0
I am just experiencing exactly the same thing with the Explorers.SelectionChangeEvent. What I have done is :

Create the variable in Addin.vb
 Private WithEvents explorers As Outlook.Explorers
set the value
  Public Sub OnStartupComplete(ByRef custom As System.Array) Implements IDTExtensibility2.OnStartupComplete
    explorers = _outlookApplication.Explorers
  End Sub
add the handler
  Private Sub explorers_SelectionChange(ByVal Explorer As Outlook.Explorer) Handles explorers.SelectionChangeEvent
    'do something
  End Sub
however, the compiler claims not to be able to find explorers.SelectionChangeEvent.

Any ideas?

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>