title: How to pass an event to a method?
body: <p>I would like to create a method that takes an event as an argument and adds eventHandler to it to handle it properly. Like this:</p>
  
  <p>I have two events:</p>
  
  <pre><code>public event EventHandler Click;
  public event EventHandler Click2;
  </code></pre>
  
  <p>Now I would like to pass a particular event to my method like this (pseudocode):</p>
  
  <pre><code>public AttachToHandleEvent(EventHandler MyEvent)
  {
      MyEvent += Item_Click;
  }
  
  private void Item_Click(object sender, EventArgs e)
  {
      MessageBox.Show("lalala");
  }
  
  ToolStripMenuItem tool = new ToolStripMenuItem();
  AttachToHandleEvent(tool.Click);
  </code></pre>
  
  <p>Is it possible?</p>
  
  <p>I've noticed that this code worked fine, and returned to my project and noticed that when I pass an event declared in my class, it works, but when I pass event from other class it still does not work.</p>
  
  <p>What I get is this error:</p>
  
  <blockquote>
    <p>The event
    'System.Windows.Forms.ToolStripItem.Click'
    can only appear on the left hand side
    of += or -=</p>
  </blockquote>