title: VB.NET RemoveHandler & Anonymous Methods
body: <p>How do I use <code>RemoveHandler</code> with anonymous methods?</p>
  
  <p>This is how I add a handler for <code>MyEvent</code> event of the class <code>MyClass</code>:</p>
  
  <pre><code>AddHandler MyClass.MyEvent, Sub()
                                  '...
                              End Sub
  </code></pre>
  
  <p>How do I then use <code>RemoveHandler</code> to remove the handler for the <code>MyEvent</code> event?</p>