I have a user control with several buttons, which need to take different actions depending on the class using it.
The problem is that I don’t know how to implement those handlers because when using my user control from the final app I don’t have direct access to the buttons to specify which handler handles which events.
How would you do that?
Another way to do this is to expose the events through events in your UserControl :
This gives your usercontrol a
Button1Clickevent that hooks up to that button within your control.