Basically, what you need is to implement hooks in your application.
For more about hooks, go to
http://www.stevenblack.com/, choose "Papers" from the left menu, choose "Design Pattern: Hook Operations" from the right frame.
Vlad
>Can anyone tell me how i might be able to insert code into any event of any object during program runtime?
>
>Example: to set the 'click' event code of a checkbox in my program
> startup code
>
>Any help will be appreciated!
>Many thanks :)
>
>Mazlan Bin Mohammad