Microsoft KB Archive/271664

= BUG: Events with Names Containing an Underscore Are Not Received in Visual Basic =

Article ID: 271664

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q271664



SYMPTOMS
A custom event containing an underscore character ( _ ) as part of the event's name is not received in a Visual Basic event handler. The Visual Basic integrated development environment (IDE) generates code for the event handler in the general section of the IDE and not for the object.



CAUSE
This is due to a limitation in the Visual Basic event processing code.



RESOLUTION
Do not use the underscore character as part of the name of a custom event.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Keywords: kbbug kbnofix kbide kbactivexevents KB271664

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.