VSTO and Outlook Event

  • Thread starter Thread starter ck
  • Start date Start date
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.
 
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.
 

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

Back
Top