Enhance Development with Registry Edits

Enhance Development with Registry Edits

Here are a couple useful Registry edits to enhance your day-to-day Visual Basic development. Save these Registry lines to a text file with a REG extension, and then double-click on the file to merge it with your Registry.

Right-click on DLL register/unregister (make sure RegSvr32.exe is on your path):

 REGEDIT4[HKEY_CLASSES_ROOTdllfileShellRegistercommand]@="RegSvr32 "%1""[HKEY_CLASSES_ROOTdllfileShellUnregistercommand]@="RegSvr32 /u "%1""

Right-click on OCX register/unregister:

 REGEDIT4[HKEY_CLASSES_ROOT.ocx]@="ocxfile"[HKEY_CLASSES_ROOTocxfile]@="OCX"[HKEY_CLASSES_ROOTocxfileshellRegistercommand]@="RegSvr32 "%1""[HKEY_CLASSES_ROOTocxfileshellUnregistercommand]@="RegSvr32 /u "%1""

Right-click on OLEView to open a DLL or OCX in the OLE Viewer utility (edit paths appropriately):

 REGEDIT4[HKEY_CLASSES_ROOTdllfileShellOleViewcommand]@="c:\Visual Studio\Common\Tools\oleview.exe "%1"" [HKEY_CLASSES_ROOTocxfileShellOleViewcommand]@="c:\Visual Studio\Common\Tools\oleview.exe "%1"" 

These shell extensions work for previous versions of VB as well; simply change the commands and/or paths appropriately. Editor’s Note: As with all Registry edits, be sure you either have a current backup or can live with the consequences.


Share the Post: