Results 1 to 7 of 7

Thread: Need list for naming controls with 3 letters

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2003
    Posts
    376

    Need list for naming controls with 3 letters

    Does anyone has a weblink or a PDF for a complete listing of the 3 letters needed for naming controls?

    example:

    txtName
    lstChoices
    lblStatus


    Thanks

  2. #2
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Re: Need list for naming controls with 3 letters

    http://support.microsoft.com/kb/q110264/
    Attached Images Attached Images
    Last edited by FishGuy; Nov 14th, 2005 at 09:30 AM.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2003
    Posts
    376

    Re: Need list for naming controls with 3 letters

    thanks fishguy

    Just a note:
    the PDF file and the link applies only to Visual Basic 3.0 and 4.0

  4. #4
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Talking Re: Need list for naming controls with 3 letters

    I personally prefer this webpage.
    ~Peter


  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Need list for naming controls with 3 letters

    3 letter prefixes are outdated and IMO pretty useless. MSDN advises to use the Java naming convention - first letter lowercase, first letter of subsequent words capitalised.

    e.g. folderList, okButton, etc.

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Need list for naming controls with 3 letters

    I'm with penagate. There are so many classes in use these days that you end up with 90% of your variables prefixed with "obj", which really gets my goat. If you try to use more meaningful prefixes you end up with clashes which then create confusion rather than alleviate it. Proper variable naming and commenting, plus the features of the modern IDE, pretty much negate the need for Hungarian notation.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2003
    Posts
    376

    Re: Need list for naming controls with 3 letters

    The only reason it calls my attention is to be able to quickly find my controls variables using InteliSense. All Forms are organized under frm.. and all textboxes under txt so and so forth.

    Just a thought

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width