Catch Activate-Event of any inspector

Joined
Jan 11, 2008
Messages
3
Reaction score
0
Hello again,


I'm trying my luck again with another question... Hopefully this one is easier to solve ;)

My VB6-OL2003-Addin needs to know when an inspector gets activated.

I declared these two, to catch some events:

Code:
Public WithEvents myOlInspectors As outlook.Inspectors
Public WithEvents myOlInspector As outlook.Inspector

Now I can do that:

Code:
Private Sub myOlInspectors_NewInspector(ByVal Inspector As outlook.Inspector)
  Set myOlInspector = Inspector
End Sub

which makes me able to do that:

Code:
Private Sub myOlInspector_Activate()
'act on activation
'code code code
'code code code
'code code code
End Sub

BUT:

If the user opens multiple inspectors - only the last one will receive the Activate-event. If he decides to switch to one of the other inspector my addin won't notice it.

I played a bit around with arrays, - but I couldn't figure out how to do it.

Any ideas?

tia
Harry
 

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