Maximum Length of Name Property Depends on Events Supported (96151)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q96151 SUMMARY
The maximum length of the Name (CtlName in version 1.0) property for
controls varies from control to control depending on the character length
of its longest event name. Event procedures names are limited to a length
of 40 characters including the control's Name property, the underscore, and
the event name. Therefore, the longer the event name, the shorter the Name
property can be.
In Visual Basic versions 2.0 and 3.0, the Label, Picture Box, and Text Box
controls add support for the LinkNotify event, which is one character
longer than any event supported in version 1.0 for these controls. The
maximum length of the Name property for these controls is therefore one
character fewer in versions 2.0 and 3.0. A table showing the maximum length
of the Name property for all of the standard controls in Visual Basic
versions 2.0 and 3.0 is listed below.
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | KB96151 |
---|
|