I am working on a C# application and I've created UserControls to make it easier to manage all the GUI's components.
I have one very simple user control consisted of a button and a textbox, this simple control is added on-the-fly when the user clicks on "add control" on a form that holds a collection of this controls. The button on the UserControl is to remove itself from the panel.
My question is, how can I tell on the form that is being added that the event was triggered for the button in the userControl ? because I need to remove that specific control from the form and the event happens in the userControl....
any suggestions ?