Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created an active x control in C#.
I build it on 64bit win 7 it works fine in my p c, but when i run it on other computer(any 64bit or 32 bit
) it gives me the above error.
Posted

1 solution

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.
 
Share this answer
 
Comments
S.Faizan.Ali 22-Sep-12 12:08pm    
Thanks for your response. Can you please elaborate "Creating objects in objects" with an example.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900