I am working on a Windows Forms app. The problem is the following: I have a main form in which I have a panel where I call my forms which are user control.
Starting from there, when I have a form in the panel I call a form (forms) and from that form I call another form (forms) from this last command to make an action in the user contrl in which there is a method that activates a control. My question is how can I navigate to the main form which is the floor of everything and in which there is a panel and within that panel my user control that makes form.
ucProducto uc =Panel1.Controls.OfType<ucProducto>().FirstorDefault();
if(uc != null){
uc.ActivarGrp();
}
I can not find a way to get to the user control. I can not access the main form from the second form form.