VB6 to .net transfer of application.outlook object

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear team,

This works well in VB6/DLL project in the Contact fields in Outlook:
Application.ActiveExplorer.Selection.Count

but, if I want to transform/copy this to .net (VB) then it says:
"Application" is not declared.

Does anybody have an idea what I need to declare so that I can access the
Outlook object with the DLL I am creating?
Thanks
Michael
 
If this is a COM add-in that you're building, the Application object passed by the OnConnection event is the Outlook.Application object that you should use to derive all other objects.
 
Back
Top