title: How to expose and raise custom events for a vb.net winforms user control
body: <p>Please read <a href="https://stackoverflow.com/questions/943171/expose-and-raise-event-of-a-child-control-in-a-usercontrol-in-c">THIS</a> post.  I have the same problem as described in this post but I am trying to do in in VB.net rather than c#.  </p>
  
  <p>I am pretty sure to do this I have to use a custom event.  (I used a <a href="http://www.developerfusion.com/tools/convert/csharp-to-vb/" rel="nofollow noreferrer">code conversion site</a> to get to learn about custom events.)  So in the IDE when I type the following:</p>
  
  <p>Public Custom Event AddRemoveAttendees As EventHandler</p>
  
  <p>It expands to the following code snippet.  </p>
  
  <pre><code>Public Custom Event AddRemoveAttendees As EventHandler
      AddHandler(ByVal value As EventHandler)
  
      End AddHandler
  
      RemoveHandler(ByVal value As EventHandler)
  
      End RemoveHandler
  
      RaiseEvent(ByVal sender As Object, ByVal e As System.EventArgs)
  
      End RaiseEvent
  End Event
  </code></pre>
  
  <p>But I can't figure out what to do with it.  Until today I had never heard of custom events.</p>
  
  <p>The bottom line of what I want is to have the click event of a button bubble up to the container of the user control.  I know that I could wrap my own event but I would at least like to understand custom events before I go farther down that road.</p>
  
  <p>Seth</p>