Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6014691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:43:47+00:00 2026-05-23T02:43:47+00:00

Say I created a program with a textbox on it and a button that

  • 0

Say I created a program with a textbox on it and a button that does something with the text in the textbox.

How do I make that program COM visible, load it and automate it from another project?

My goal is to be able to automate the program using COM:

Dim myProj as object = createObject("myProgram")
myProj.setText("Hello World")
myProj.buttonClickEvent()

Similar to how you can load a new excel and automate via interop:

dim xl as object = createobject("excel.application")
Dim wb as object = xl.workbooks.add
Dim ws as object = wb.worksheets(1)
ws.cells(1,1) = "i love stackoverflow"

How do programs do this? I’m looking for the answer VB.Net specific. Thank you in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:43:47+00:00Added an answer on May 23, 2026 at 2:43 am

    This page should give you the necessary details you will need: http://www.codeproject.com/KB/vb/MusaExposingCOM.aspx

    This process that you want is normally called “exposing a COM interface”, this is done via early binding or late binding. Early binding means the methods (locations) are known when you create your program, late binding means the methods (locations) are looked up when you run the program. Late binding, I think, is a little slower but the lookup only has to happen once. This is negligible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say that I've created two different program executables, e.g. in C++. For some
Let's say I have created two objects from class foo and now want to
Say I've got a domain model created from C# classes like this: public class
I know that if I created a custom control, say MyLabel in App_Code ..
How a user exception class is created from standard exception? Addressing below cases Say
there i have created a program with a tab button and page number. all
I created a C#.net app that uses dates from a SQL Server 2008 database
I plan to program an Android app that periodically determines the device's position (say
I have created an executable Java .jar file. That is to say, I properly
Lets say you created a little Java Desktop app with a jar and some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.