Search Amazon:

Late Bind to a COM Component with VB.NET

In VB6 you could use the CreateObject statement to Late Bind to COM or ActiveX components dynamically at runtime.

You can still do late binding to COM components in VB.NET:

    Option Strict Off

    Dim myObj As Object

    Dim t As Type = Type.GetTypeFromProgID("Excel.Application", True)
    myObj = Activator.CreateInstance(t)

    myObj.Open...

    myObj = Nothing
Sign In
  User Id 
  Password 


Submit Your Own Code and Articles




About TheScarms
About TheScarms

Ask me your programming questions

I read every email and answer all I can.

User Feedback: Be the first to add a comment! Items to Show:     

     
You must log in to post feedback.
Comment:    
 

If you use this code, please mention "www.TheScarms.com"

Email this page


TheScarms AppSentinel lets you securely copy protect and create evaluation versions of your software

TheScarms(tm) AppSentinel lets you quickly and easily create evaluation versions of your software and stop unauthorized copying and unregistered use of your programs!

Get your free
trial copy today!


      The World's Number 1 Web Host

© Copyright 2008 TheScarms