Invoke COM Components from Visual Basic.NET: Demo
Category:C#, VB.NET, ASP.NET
Author:Pramod Kumar Singh
Version Compatibility: Visual Basic.NET
The .NET framework is a natural progression from COM since the two share many central themes including component reuse and language neutrality. For backward compatibility, COM Interop provides access to existing COM components without requiring that the original component be modified. When a .NET Framework developer wants to incorporate COM code into a managed application, he or she imports the relevant COM types by using a COM Interop utility for that purpose. Once imported, the COM types are ready to use. This is early binding , but some time u require late binding of object. You can do that too in .NET ie u can call COM object via late binding by using Namespace Reflection
Instructions: Copy the declarations and code below and paste directly into your VB project.