How can I dynamically register a custom ocx into my program?

If I can, then how to handle for the events and property?