How can I open a User Control from another User Control with a LinkLabel?

0

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);
    
asked by e2vl13 26.05.2018 в 04:00
source

0 answers