-
Sep 29th, 2022, 09:14 AM
#1
Thread Starter
Fanatic Member
How do I quickly find a form?
So here's the thing... Back on Day 1 somebody suggested I name all my forms starting with frmXXXXX. So frmAbout, frmBegin, etc. I have about 200 forms in my project. Normally if I wanted to find a form called "Utilities" I could click on the first form in Project Explorer, type a U and be instantly zoomed through the list of forms to the U's and there would be Utilities. Except as I mentioned, they all start with frm. So I could click on the first one, type a U and nope. Or I could type F and move to the next form and the next. Basically I'm down to scrolling through a list.
Two questions...
First, who's bright idea was it to name them all frmXXX? I know it was one of you! Confess!
Next, is there any way around this so I can quickly zoom to the form I'm looking for?
Many thanks in advance for any assistance. (except the the frm guy - you can go burn in hell! (Just kidding! I love all you guys.))
-
Sep 29th, 2022, 09:26 AM
#2
Re: How do I quickly find a form?
The project-tree is "Full-length-searchable" -
meaning you have to continue typing as e.g.:
<f><<r><m><a>
and the Tree-Selection should jump to: frmAbout
This works the same way also with modules and class-entries in the Tree...
HTH
Olaf
-
Sep 29th, 2022, 11:05 AM
#3
Re: How do I quickly find a form?
Originally Posted by Darkbob
First, who's bright idea was it to name them all frmXXX? I know it was one of you! Confess!
It's an older form of naming that most of us don't do any more. Probably some kind of carry over from Hungarian Notation that was in fashion at the time. I don't think anyone recommends it any more, regardless of language.
But, I suspect that it also comes from a form of organization - VB6 solutiuon explorter doesn't support folders if I remember right, so to group all the forms together to "make them easier to find" the solution was to use "frm" as the prefix, "mod" for modules, and so on. It also means you can have "fromUtils" and "modUtils" ... Thinking about it now though... it might make more sense to use "UtilsFrm" and "UtilsMod" ... reads better "Utilities Form" "Utilities Module" ... shrug... at the end of the day though, it's your shop, your rules. Use what naming scheme works best for you.
-tg
-
Sep 29th, 2022, 01:06 PM
#4
Re: How do I quickly find a form?
Originally Posted by techgnome
Use what naming scheme works best for you.
-tg
Accordingly, supported.
-
Sep 29th, 2022, 04:10 PM
#5
Re: How do I quickly find a form?
Originally Posted by Episcopal
Accordingly, supported.
frmAbout suits me perfectly, thanks. Of course “full-length” search is available in every tree-view, list-view and listbox since NT4.
Sometimes I doubt most of the people here are secretly running Linux and then run VBIDE under Wine or something.
-
Sep 29th, 2022, 07:59 PM
#6
Re: How do I quickly find a form?
Originally Posted by wqweto
frmAbout suits me perfectly, thanks.
Yes, for me too....
-
Sep 30th, 2022, 01:44 AM
#7
Frenzied Member
Re: How do I quickly find a form?
Nothing to beat keeping a simple list of forms and dscriptions in eg a Word Document. All my projects have either a separate ring or paper file (remember those thin white things?), or a list as remarks at the start of frmMain (or frmMenu), where I also note any references.
Thanks all !
-
Sep 30th, 2022, 01:52 AM
#8
Re: How do I quickly find a form?
You can also check the Large Project Organiser add in by ColinE66:
https://www.vbforums.com/showthread....o-sub-classing
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|