We're creating objects at runtime so before running the code doesn't know what object it is working with. We want to add an event handler to every TextBox which is created at runtime. But when we try AddHandler obj.Leave, AddressOf leaveControl
the compiler won't run the program because "object doesn't have an event like Leave".
Is there a way to add an event handler to a object of unknown type?
Thanks :)