I have searched for this ,and there are several answers but I couldn't figure out how to do it.
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.
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.
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.
How can I do this , thanks in advance.