ex.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CtlName and FormName Properties Example
                        ◄Example►                ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
' This example shows one way to develop CtlName and FormName schemes. In
' larger applications, default form and control names often become too
' generic. For example, if you have several projects containing a form named
' "Form1," it will be overwritten in all projects unless you uniquely name it.
' In addition, having a simple naming convention will help you to write more
' readable code.
 
' You might consider using the following formula:
 
'              typeDescription
 
' where type is a three letter abbreviation indicating the type of control,
' and Description describes the particular use or action of the control. For
' example, a text box that displays a digital readout might be named:
 
'              txtDigits
 
' Using the formula above, you might consider the following three-letter
' abbreviations for your naming scheme:
 
' Object                  Abbreviation    Object           Abbreviation
' ═════════════════════   ════════════    ══════════════   ═════════════════
' Form                    frm             Check box        chk
' Combo box               cbo             Command button   cmd
' Directory list box      dir             Drive list box   drv
' File list box           fil             Frame            fra
' Horizontal scroll bar   hsb             Label            lbl
' List box                lst             Menu             mnu
' Option button           opt             Picture box      pic
' Text box                txt             Timer            tmr
' Vertical scroll bar     vsb
 
' Visual Basic makes it easy to create applications by providing a default
' naming scheme (for example, Form1, Form2, Combo1, and Combo2), and allowing
' you to create your own. Feel free to use the example naming scheme defined
' above.