Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Visual Basic
Expertise: Intermediate
Aug 7, 1997



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Quick Jumps to the Declaration Section

I often want to get to the General code section of a form quickly, either to hack module-level variables or to grab the procedure pull-down to find that function whose name I forgot. Double-clicking on the form gives you Form procedures. Clicking on "View Code" from the menu or project box does the same unless no form is open. To solve this, put an oval Shape control with an obnoxious color on all your forms and make it invisible. Of course, nothing is invisible in design mode, and because shapes have no event procedures, double-clicking on it takes you to the General/Declarations page every time. Note that under VB4 and VB5, you might enforce Full Module View, in which case you can jump to the declaration section simply by pressing Ctrl-Home.
Randal J.
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date