In this link and this one some VB6 programmers discussed about their favorite VB6 tools, I pick up the mostly-voted and some interesting ones as below:
29 votesEnable mouse wheel in VB6: Microsoft: Enable the mouse scroll wheel
13 votes + 9 votes (in both links)MZ tools: VB6 just isn't installed until you 've done this. free. lots of extra tools for the IDE, like "favorite procedures" and "add error routine to prodedure" and lots more. for VB6, MZ-tools is a fantastic free add-in. my favorite features are its find feature and its ability to find all callers of a given routine with a click of the button.
10 votesAfter installing VB6, I always do these customisations on tools-Options.
Switch off auto syntax checkOn the editor tab. You don't want message boxes when you type a syntax error-you just want the problem line shown in red so you can fix it later.
Switch on require variable DeclarationOn the editor tab. Don't think, just do it.
Switch off compile on demandOn the General tab. You want to be told about syntax errors immediately when you run your code, not just when the dodgy routine actually gets called.
Set
Error TrappingTo "break on unhandled errors" on the General tab. actually, this is a personal preference-but you should select the setting that suits you. hopefully you 've worked out an error handling strategy for the VB6 program?
I have an LCD screen, and the default colours don't work very well, so I change them to lighter ones. i'm also using the parameter las font. makes my VB6 Code look twenty-first century anyway
Http://www.waakee.com/story/27959.html
6 votesCustome code templates in VB6 stores class files, form files, or module files
C:/Program Files/Microsoft Visual Studio/VB6/Template/Classes
Or other directories, you can make these files automatically appear in the VB dialog box as templates. I don't know if this is really a "hidden" feature or not, but always thought it was a nice time-saver. you can create your own custom templates for classes, modules, forms, etc. and make them available in the IDE. for example, I usually like to use stronugly-typed
Collection
Classes in my VB6 code. So I might want
FooCollection
That holds
Foo
Objects and nothing else, instead of a plain old
Collection
. I don't want to have to reimplement
Collection
Interface every time I need a new stronugly-typed
Collection
, So I created a new class template that contained all the boiler-plate
Collection
Code. Now whenever I go to add a new class module to my project, my custom
TypedCollection
Template is available as an option. Then I just rename the newly-added class
FooCollection
And replace all occurences of "as object" with "as foo" (where foo is the type of object I want to store in the Collection) and I'm done. keeping with my custom class template example, here's what you do: a) Open up the IDE and start a new project (I usually just do standard EXE, because it doesn' t really matter what you pick here ). b) Add a new class to the project. this will become your template. c) code your template class. basically just write any boiler-plate code that you wowould like to be able to reuse in other projects. this is straight VB code, nothing special. d) When you're finished save your file in your
C:/Program Files/Microsoft Visual Studio/VB6/Template/Classes
Folder (Note: The other subfolders, such
Forms
, Etc. are for other kinds of templates ). the name of. CLS file minus the extension is what will appear in the IDE, So I normally include spaces in the file name for readability. e) The next time you open up your ide and click
Project->Add Class Module
, Your template class will appear in the list of available class templates.
5 votesDesign patterns by the gof. while it doesn't seem specific for VB6 the fact that most of the patterns are based interface implementation and aggregating objects (as opposed to inheritance) makes it well suited for use with VB6. they talk about this on pages 16 to 18 and sum it up in one statement.
Program to an interface, not an implmentationIf there is one thing that VB6 and COM does well is handle interfaces. + 1. can I also plug the book "Visual Basic developer's Guide to UML and design patterns" by griver etc? Explains design patterns in 100% VB6, discussing issues like circular references. Anyone whose main experience is in VB6 might find the Gang of Four book difficult, I recommend this fine book instead.
4 votes(1) Change the "Start in" property on the specified cut that you use to start VB6 to the root of your source code directory. this will save your wasted mouse clicks every time you open a project from within the IDE. (2) The entire mvps.org site here I recommend Karl Peterson 'one stop source and Randy Birch's vbnet (which has nothing to do with VB. net) and common controls replacement project.
2 votes(1) I can't believe no one has yet posted Bruce McKinney's hardcore Visual Basic (now hosted on mvps.org )! OK it's a book rather than a piece of software, but it expands to a veritable cornucopia of tools and tips. (2)
Vbaccelerator website. It has so far great examples and free controls with the full source. the site has not been updates in a few years now, but it still keeps running and I still go back to it when working in VB6.
1 voteThe VB6 ide doesn' t remember your preference for maximizing the code windows. to start up with the VB6 code windows maximized, set this string registry key: [HKEY_CURRENT_USER/software/Microsoft/Visual Basic/6.0] "mdimaximized" = "1"