Remove OCX from the Component List

  • 15 years ago

    Hi to all...


    I've downloaded a certain .OCX file and paste it on "C:\Windows\System32\". It goes OK because it is currently in the Component List of my VB6. But now, i've decided to remove it so i deleted the file... BUT THE COMPONENT IS STILL THERE EVEN THOUGH IT DOESN'T EXIST ANYMORE...


    How can i completely remove it from the list?

  • 15 years ago
    Ross,

    The components list is populated from the registry.

    To remove your unwanted component from the component list you need to delete all references to it in the registry.

    You should observe the standard warnings regarding manually editing the registry i.e. back it up first.

    Using regedit, search for all occurrences of the component and delete them.

    Trevor
  • 15 years ago

    thanks...

  • 15 years ago
    before deleting the file in the run command under the start menu enter the following

    regsvr32 /u "thefilepath\thefile.ocx"

    then delete the file.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There's no test like production” - Anon