I have form1.cs, and in this form I have panel1, in the load event of form1.cs I add a control to panel1. Now my problem is: I have an element called Numbers.cs, I need to add another control to this panel1, but from this control to the button event. How can i do this?
public partial class Number : UserControl
{
public Number()
{
InitializeComponent();
}
private void btnAcceptWelcome_Click(object sender, EventArgs e)
{
}
}
ADDITIONAL INFORMATION
So basically I have a folder called UserControls, and in this folder I have
Numbers.cs
Letters.cs
Welcome.cs
All user controls, then I have a form
Form1.cs
Form1.cs Welcome Panel1 Form1.cs . Welcome.cs , , Numbers.cs. , Welcome.cs