>You have created an object on the fly using the AddObject method and set all it properties.
>
>But how do you actually write methods that it should executes when certain events happen? For example I want to call a function in the when property/method.
>
Usually, it's going differently. You prepare a class with all ready-to-use method/events code, and then you AddObject from this class.
Edward Pikman
Independent Consultant