PRB: Error 459 Trying to Use Alternate Object Interface (172329)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
This article was previously published under Q172329 SYMPTOMS
You get run-time error 459 "Object or Class does not support the set of
elements" when assigning an object of class "A" to an object variable of
class "B" in order to use an alternate interface.
CAUSE
The base class you are implementing in your object defines an Event object
and your object variables are declared using the WithEvents keyword. The
Visual Basic versions listed above do not support events in inherited
interfaces.
RESOLUTION
This is a limitation of the versions of Visual Basic listed above.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbprb KB172329 |
---|
|