BUG: Events with Names Containing an Underscore Are Not Received in Visual Basic (271664)



The information in this article applies to:

  • Microsoft Visual Basic Professional Edition for Windows 5.0
  • Microsoft Visual Basic Professional Edition for Windows 6.0
  • Microsoft Visual Basic Enterprise Edition for Windows 5.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0

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.

Modification Type:MajorLast Reviewed:10/15/2002
Keywords:kbActivexEvents kbBug kbide KB271664