devxlogo

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.

See also  Why ChatGPT Is So Important Today
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist