I'm developing an application where multiple UserControls will be shown in a Panel from the code below:
UserControl1 u1 = new UserControl1();
panel1.Controls.Add(u1);
And I remove them from this code:
panel1.Controls.Clear();
However, I am not able to enter this command from a button inside the UserControl. I can only from the form where the Panel is