Classic VB Corner

Redesign IDE Dialogs

Ever felt the VB IDE dialogs were poorly designed? Here's a way for you to tweak them a bit more to your liking.

An ongoing frustration of mine was always found in the ClassicVB Project References dialog. You've probably growled or at least grumbled at it a few times, too. What's with that chopped off Location field??? As often as not, you can't actually see the name of the file highlighted in the listbox below, as shown here:


[Click on image for larger view.]
Figure 1.

Shoot, there's even a horizontal scrollbar on that list! That might've been a somewhat reasonable design in the days when a few folks still used 640x480 screens, but no more.

What if you could tweak that dialog, making the listbox a little wider? Those priority buttons seem rather poorly placed too, don't they? They could slide over to the right, the listbox could be widened. Heck, the entire dialog could be widened, all the buttons slid over, the Location and Language labels widened... You see where this is going.

Well, there's a tool you can use to do modify these sorts of settings to your heart's content. Resource Hacker is a freeware utility to view, modify, rename, add, delete and extract resources in 32-bit Windows executables and resource files. I've long found it one of the best tools available to explore "the guts" (resources) of executables.

ResHacker offers a dialog tool that's extremely similar to Classic VB's -- you just drag the dialog elements around, resizing them to suit. Or you can edit the raw resource script, and watch the changes play out in the dialog designer. Simply open the "Dialog" node in the treeview, find the dialog you want to edit, and go to town. When you're happy with the new design, press the "Compile Script" button, then just do a File | Save to write the changes to disk. (Be sure to make a backup of the original file, first, of course, unless you enjoy doing re-installs.)

To modify the Classic VB Project-References dialog, open the VB6IDE.DLL (or VB5IDE.DLL) file in ResHacker, find Dialog #4040 and get to work. Here's the "after" shot to compare with the "before" above. Which would you rather use?


[Click on image for larger view.]
Figure 2.

I've posted the resource script used for this dialog on my Web site. You can also flip back and forth between the original and modified dialogs by using these two links and pressing the Back and Forward buttons in your browser to visualize the changes. If you like my redesign and would rather not hand-manipulate all the controls into a similar layout, you can just download my script and paste it into the ResHacker script editor.

Now you'll always know which file is associated with each named reference. Sweet.

If you'd like to share your own ideas for really useful IDE resource hacks, please do so below, or email me and we may find a way to sneak the really good ideas into a future column.


About the Author

Karl E. Peterson wrote Q&A, Programming Techniques, and various other columns for VBPJ and VSM from 1995 onward, until Classic VB columns were dropped entirely in favor of other languages. Similarly, Karl was a Microsoft BASIC MVP from 1994 through 2005, until such community contributions were no longer deemed valuable. He is the author of VisualStudioMagazine.com's new Classic VB Corner column. You can contact him through his Web site if you'd like to suggest future topics for this column.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube