title: How to pass Button.Click into a function?
body: <p>I have a function that adds eventhandlers to control events.  Right now I have several overloads that add events to different types of controls:</p>
  
  <pre><code>Public Sub AddEventHandler(Button, ButtonEvent) 'adds event handling for Button.Click
  public Sub AddEventHandler(LinkButton, ButtonEvent)'adds event handling for LinkButton.Click
  </code></pre>
  
  <p>The problem is I want to write a function that is more robust like:</p>
  
  <pre><code>Public sub AddEventHandler(Control, EventToHandle, ControlEvent)
  </code></pre>
  
  <p>where</p>
  
  <p>EventToHandle is the parameter representing Button.Click or whatever event that Button has associated with it.</p>
  
  <p>Any suggestions guys?  Thanks!</p>