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.
Valid Control Names
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Valid Control Names
■ By default, Visual Basic assigns a unique name (the CtlName property) to
each control - for example, Option1, Option2, and Option3. However, you
might want to change default control names by specifying your own unique
name for each control. If you do so, make sure that your naming scheme
is valid.
■ A valid control name:
• Must start with an alphabetic character.
• Can include alphanumeric or underscore (_) characters.
• Cannot exceed 40 characters.
■ Note: The 40-character limit includes the names of event procedures.
Remember that "control name" + "_" + "longest event name" must not exceed
40 characters.
See: ◄CtlName Property► ◄Default Control Names►
◄Object Naming Schemes► ◄Valid Control Types►