How do add a close event dynamicly?

Top