>Hilmar,
>
>Thanks for the quick response. How do I go about adding a custom method for an object based on a class? I'm fairly new at creating objects at runtime.
Actually, what I meant was to define all necessary methods in the class in the first place. Then, if you add an object based on that class, the methods are available for the thusly created objects. That can work, for instance, for the Click() method, or for any other built-in or user-defined method.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)