BUG: Unable to Edit LinkNotify Event If Control Has Long Name (97027)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q97027 SYMPTOMS
Visual Basic version 2.0 does not allow you to edit the LinkNotify event
procedure of a Label, Picture Box, or Text Box control if the control
has a 30-character Name property.
CAUSE
The LinkNotify event, an event new in Visual Basic version 2.0, became
the longest (10 characters) event procedure name for Label, Picture Box,
and Text Box controls. In version 1.0, the longest event procedure for
these controls was nine characters long.
The maximum length of the Name property (CtlName property in Visual
Basic version 1.0) is directly related to the length of the control's
longest event procedure, so the maximum length of the Name property for
Label, Picture Box, and Text Box controls in Visual Basic version 2.0 is
one character less than it is in Visual Basic version 1.0.
Therefore, if you load a Visual Basic version 1.0 project into Visual
Basic version 2.0 and a Label, Picture Box, or Text Box control has a
30-character CtlName property, you won't be able to edit the LinkNotify
event in the Visual Basic environment until you reduce the length of the
Name property.
WORKAROUND
Reduce the length of the Name property by one or more characters.
STATUS
Microsoft has confirmed this to be a bug in both the Standard and
Professional Editions of Microsoft Visual Basic version 2.0 for Windows.
We are researching this problem and will post new information here in the
Microsoft Knowledge Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | kbbug KB97027 |
---|
|