PRB: Event Procedures May Be Executed for Unhandled Events (191454)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q191454 SYMPTOMS
When adding a control to a DHTML page in Visual Basic 6.0, code from other
events may be executed.
CAUSE
In regular Visual Basic applications, if code is not written for an event,
no other code will be executed when the event fires.
In Visual Basic 6.0 DHTML applications, events are shared between the
parent object and the child object.
This is called Event Bubbling and is a property of the DHTML object model.
RESOLUTION
To obtain the same behavior that Visual Basic exhibits, set the
cancelBubble property of the Event object.
STATUS
This behavior is by design.
REFERENCES
For more information about DHTML and Event Bubbling, please refer to your
Visual Basic 6.0 Documentation.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB191454 |
---|
|