I have a program in which from a user control of login (control 1) which is the default, another user control of password recovery opens > (control 2). Both are on the same window.
the question is, how can I open through a LinkLabel in Control 1 Control 2?
I was using this code that is not functional to me, I think it is to show in a panel but I want it to be shown only on the window.
VENTANA CONTROL_DE_INICIO = (VENTANA)this.FindForm();
VENTANA.panel.Controls.Clear();
INICIO.RECUPERAR_CONTRASEÑA ctrl2 = new INICIO.RECUPERAR_CONTRASEÑA();
VENTANA.panel.Controls.Add(ctrl2);