Attach

STATIC SUB Attach ( Object AS Object, Parent AS Object, Name AS String )

Attach an object to its parent.

Every event raised by the object will be managed by an event-handler located in its parent.

If the parent is a class, then the the event-handlers will be static methods of the class.