I add a eventhandler to form's Load event ,it compiled with no error,but does not work as expect
<p>I want to add additional eventhandler to all forms in my project.
when each form <code>Load event</code> is fired,beside the code written in Form_Load(),
my eventhandler will  also be executed.</p>

<p>this is my code :</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Reflection;

namespace eventHandlerIntercept {    
   static class Program    {
      /// &lt;summary&gt;
      /// The main entry point for the application.
      /// &lt;/summary&gt;
      [STAThread]
      static void Main()
      {

          Application.EnableVisualStyles();
          Application.SetCompatibleTextRenderingDefault(false);
          //intercept all form's Load event
          Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
          foreach (Assembly a in assemblies)
          {
              Type[] types = a.GetTypes();
              foreach (Type t in types)
              {
                  if (t.IsPublic &amp;&amp; t.BaseType == typeof(Form))
                  {
                      if (t.Namespace.Contains("eventHandlerIntercept"))    
                      {                        
                        EventInfo e1 = t.GetEvent("Load");

                        MethodInfo mi = typeof(Program).GetMethod("HandleCustomEvent");

                        Delegate handler = Delegate.CreateDelegate(e1.EventHandlerType, mi);

                        object o1 = Activator.CreateInstance(t);
                        e1.AddEventHandler(o1, handler);

                    }
                }
            }
         }
         Application.Run(new Form1());
    }


    public static void HandleCustomEvent(object sender, EventArgs a)
    {
        // Do something useful here.
        MessageBox.Show("xyz");
    }
  }
 }
</code></pre>

<p>this code compile with no error ,but when Form1 display,it does not show a <code>message box</code> which content is <code>xyz</code>,where is the problem with my code?</p>
