BUG: Unable to Edit LinkNotify Event If Control Has Long NameLast reviewed: June 21, 1995Article ID: Q97027 |
The information in this article applies to:
- Standard and Professional Editions of Microsoft Visual Basic for Windows, version 2.0- Microsoft Visual Basic programming system for Windows, version 1.0
SYMPTOMSVisual 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.
CAUSEThe 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.
WORKAROUNDReduce the length of the Name property by one or more characters.
STATUSMicrosoft 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.
MORE INFORMATIONThe maximum length of event procedures names is limited to 40 characters including the control name, the underscore, and the event name. The Name property therefore has a maximum length that varies depending on the events supported by the control.
Steps to Reproduce Problem
|
Additional reference words: buglist2.00 1.00 2.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |