PRB: Event Procedures May Be Executed for Unhandled Events
Article ID: 191454
Article Last Modified on 1/8/2003
APPLIES TO
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
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.
Additional query words: web internet kbInternet kbDHTML kbdse kbDSupport kbVBp kbVBp600
Keywords: kbprb KB191454