VSTO and Outlook Event

C

ck

Hi,

I need to get the Explorer_SelectionChange Event and
CurrentFolders_FolderChange Event in VSTO (VB.Net).

In VB6 we just put the code in Initialize_Handler and it will capture the
event when the outlook explorer changed or when the folder changed.

How to do that in VSTO (VB.Net)?

Thanks in advance.
 
K

Ken Slovak - [MVP - Outlook]

You do it exactly the same way in VB.NET in a VSTO addin, you just use the
Startup() event handler to initialize things. Make sure your declarations
are at a class level and not at a procedural level so the objects don't go
out of scope.
 
Top