title: I want to create or change an event on a form, dynamically, how can i do that?
body: <p>i'm trying to write a taskbar for my program, and i need to add one line of code in 2 events, OnClose and OnActivate, but my program has over 100 forms, so i'd like to do it dynamically. Is there an way to do it?</p>
  
  <p>The language is Delphi 7.</p>