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 8387969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:21:41+00:00 2026-06-09T18:21:41+00:00

I am using Visual Basic 6. There are some component references in my project.

  • 0

I am using Visual Basic 6.

There are some component references in my project. Components are registered with Windows using “regsvr32”.
So, I have added .ocx from the installation directory to Components.

Let say C:\Program Files\Install Dir\. But, When I see References (.oca) for the control, VB automatically taking path C:\Program Files\Microsoft Visual Studio\VB98 and I can see .oca files are getting copied.

But, I want to use References from the Install dir only. I tried removing or updating, It says Can't remove control or reference;In use

I have already tried editing .vbp in editor but It does not show .oca Reference path not even default C:\Program Files\Microsoft Visual Studio\VB98

  • 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-06-09T18:21:42+00:00Added an answer on June 9, 2026 at 6:21 pm

    ActiveX DLLs and OCXs install as shared libraries by design. For this reason you almost never want to install them into a private folder like your C:\Program Files\Install Dir\ unless they are truly private in the sense of being parts of your application that other code should not use.

    More generic “utility” libraries such as those provided by Microsoft, 3rd parties, or even those you develop yourself normally install in developer mode by including both design-time licenses (when licensed) and more relevantly here .DEP files. Part of the information contained in such .DEP files is where the library is meant to be installed. In some cases this is System32, in others it is a folder under Common Files, etc.

    Now if you truly want a private copy of a DLL or OCX there is a mechanism for that. These are called isolated assemblies and they replaced the earlier, problematic .local mechanism in Win2K.

    Those .OCA files are something else entirely and you should not try to reference them or deploy them.

    But it is hard to tell what you are really after. A message like:

    Can’t remove control or reference;In use.

    .. is a design-time issue entirely unrelated to the rest of your question.

    I’m just not sure what you are trying to do. It sounds like you are trying to re-use libraries private to some other application.

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

Sidebar

Related Questions

I have written a basic Application for windows mobile 5. It is using visual
My project is using Visual Basic 2010. I have a pure text save file
Does anyone know if there is an sample code for using Visual Basic to
I am using visual basic for coding. In my form I have a delete
I'm using Visual Basic 6 for a legacy project and it's been working fine.
I'm trying to create a very basic Setup and Deployment project using Visual Studio.
I have been working on getting a basic ATL project to compile in Visual
I have created a program in Visual Basic using Microsoft Visual Studio 2010 Professional.
First, some basic details: I'm using Visual Studio 2008 Team Edition I'm using C#
How can you change your IP Address using visual basic please? I havnt been

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.