|
-
Jun 14th, 2000, 02:59 AM
#1
Thread Starter
Hyperactive Member
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?
-
Jun 14th, 2000, 04:04 AM
#2
Addicted Member
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.
-
Jun 14th, 2000, 04:35 AM
#3
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|