Results 1 to 3 of 3

Thread: Component Removal

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Posts
    367

    Angry

    I made a bunch of activeX controls, and I know longer wish to have them show up on the listing when you view components, does anyone know how to remove them from the listing?

  2. #2
    Addicted Member
    Join Date
    Jan 1999
    Posts
    239

    Talking

    To Register or UnRegister a Component you need to use
    RegSvr32.exe which is located in the C:\Windows\Systems Folder.

    To Register a the component "ThisIsMy.OCX"

    1. Make sure that the component is located in the
    "C:\Windows\System Folder

    2. Click on the Start Button - then the Run Button and
    Type in:

    C:\Windows\System\Regsvr32.exe ThisIsMy.OCX

    If you want to unregister component, follow step 1 and then
    Type in:

    C:\Windows\System\RegSvr32.exe -u ThisIsMy.OCX

    A much better method is to add a shortcut to REGSVR32.EXE in your C:\Windows\SendTo folder.
    Now you can register any component by just clicking
    on the file(in Explorer) with the right mouse button and choose "Send to" in the popup menu.

    To unregister a component just make MS-DOS Batch File, put it in the C:\Windows\SendTo folder and name it "UnregComponent.Bat" then add this line to the BAT file:

    @RegSvr32.exe -u %1

    Now you will be able to unregister components (in Explorer)
    by just right clicking the mouse and choosing "Send to" in the popup menu.

    Bear in mind that the components/DLL's do not get deleted
    from the folder, they are just unregistered and therefore
    will no longer show up on the Components List in Visual Basic's IDE.




  3. #3
    Lively Member
    Join Date
    Mar 2000
    Posts
    87
    Had a play with this one time to find an easy way to register and unregister components. I put this into my registry which when you right click on a .dll or .ocx file from explorer, it adds menu items to Register and Unregister the file. Save the bit below to a .reg file and the double click to run it.


    REGEDIT4


    [HKEY_CLASSES_ROOT\.ocx]
    @="ocx_auto_file"

    [HKEY_CLASSES_ROOT\ocx_auto_file\shell\open\command]
    @="regsvr32.exe "%1"

    [HKEY_CLASSES_ROOT\ocx_auto_file\shell\Register\command]
    @="regsvr32.exe "%1"

    [HKEY_CLASSES_ROOT\ocx_auto_file\shell\UnRegister\command]
    @="regsvr32.exe /u "%1"

    [HKEY_CLASSES_ROOT\dllfile\shell\open\command]
    @="regsvr32.exe \"%1\""

    [HKEY_CLASSES_ROOT\dllfile\shell\Register\command]
    @="regsvr32.exe \"%1\""

    [HKEY_CLASSES_ROOT\dllfile\shell\UnRegister\command]
    @="regsvr32.exe /u \"%1\""

    [HKEY_CLASSES_ROOT\ocx_auto_file\shell\open\command]
    @="regsvr32.exe \"%1\""

    [HKEY_CLASSES_ROOT\ocx_auto_file\shell\Register\command]
    @="regsvr32.exe \"%1\""

    [HKEY_CLASSES_ROOT\ocx_auto_file\shell\UnRegister\command]
    @="regsvr32.exe /u \"%1\""


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width