I have a problem and when I modify a tag or tag of a parent form tag from a child form, when I close the child form, the variable or tag of the parent form goes to the previous value, as if it were not I had modified.
What I do is call the constructor of the parent form from the child form, passing the parameter and this parameter assigning it to a tag of a tag of the parent form.
Child form
Form2 frm2;
frm2 = new Form2("false");
Parent form
public Form2(string mostradoMenu)
{
menu.Tag = mostradoMenu;
}
PS: menu is a label of the parent form
I do not find anything related to that and I can not solve it. I have tried with setters, getters and others, and nothing.
If anyone knows, it would be very helpful. Thanks in advance.