While using C#, it was easy before to create an event handler at runtime like:
Button button1 = new button1(); button1