title: How to remove an event handler in VB.NET
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7447168/vb-net-removehandler-anonymous-methods">VB.NET RemoveHandler &amp; Anonymous Methods</a>  </p>
  </blockquote>
  
  
  
  <p>If I add an event handler like this:</p>
  
  <pre><code>AddHandler s.Click, AddressOf Panel1_Click
  </code></pre>
  
  <p>How can I can then remove the event handler?</p>
  
  <pre><code>Private Sub Panel1_click(ByVal sender As Object, ByVal e As System.EventArgs)
      ' Remove code
  End Sub
  </code></pre>