title: C# Custom event for Custom Control WinForm
body: <p>I have searched for this ,and there are several answers but I couldn't figure out how to do it.</p>
  
  <p>I have a custom control with textbox and listview.
  When a user starts typing on the textbox the listview is filled with all possible matches to the text typed.(it is a search box for users).
  User is typing customer names to find the customer.</p>
  
  <p>What I want to do is , when the user types in a customer and the customer is selected , I need to pass the customer name from custom control's textbox to my main project. </p>
  
  <p>To do this , I think,  I need a custom event, when a customer is selected , it raises an event to let the main application know.</p>
  
  <p>How can I do this , thanks in advance.</p>