Here is the reason of why such error happens:
This component doesn't support this set of events (Error 459)[
^]
It says:
- You tried to use a WithEvents variable with a component that can't work as an event source for the specified set of events. For example, you may be sinking events of an object, then create another object that Implements the first object. Although you might think you could sink the events from the implemented object, that isn't automatically the case. Implements only implements an interface for methods and properties.
- You can't sink events for a component that doesn't source events. WithEvents isn't supported for Private UserControls, because the type-info needed to raise the ObjectEvent isn't available at runtime.
Make sure your ActiveX is correctly created and used. It is not creating objects in objects. In short, looks like some issue in your ActiveX creation.