?
Solved

Regsvr32

Posted on 1998-12-30
4
Medium Priority
?
541 Views
Last Modified: 2010-05-03
I have some activex control projects I've compiled to ocx's but that's all. I've noticed that somehow, these are showing up in the projec's components window (three entries all called project1). I would like to remove them and was wondering if there's a way to do it from within the VB IDE or do I have to use regsvr32. I have tried to use it, but it keeps saying that I have an extra argument on the command line so I guess I'm not doing it right.
0
Comment
Question by:sulli
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 4

Accepted Solution

by:
idcanada earned 400 total points
ID: 1453342

Can not be done from the VB IDE. Though, many small utilities exist,
you will have to do this manually.

In the folder where the control has been registered and is located,
type regsvr32 name.ocx /u
this will unregister the control.


0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1453343
I think there is a better answer to this question.

Download regclean from the microsoft site.
http://support.microsoft.com/support/kb/articles/Q147/7/69.asp
This will remove the registry entries of exe that are not available anymore.
From the command line you can unregister using myexe.exe /unregserver

Let me know what you think of it.
0
 

Author Comment

by:sulli
ID: 1453344
That unregistered it I believe, but the "project1" line still shows up in VB's component list???
0
 

Expert Comment

by:batman27
ID: 8584372
Hi,
you can also remove old references that are still in the component list,
by editing the registry :
browse until HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\
and look for the name of the ocx in the data.
Then remove the key that contains this data.
When you restart vb, the component list is cleaned up.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month8 days, 13 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question