public Hijo1()
 {
     InitializeComponent();
     carpeta.Text = Hijo1.PerfilUsuario() + "\\GestionInmobiliaria";
     Padre.PATH_LOCAL_INSTALADOR      = carpeta.Text;
     Padre.PATH_LOCAL_TEMP_INSTALADOR = Padre.PATH_LOCAL_INSTALADOR + "\\temp";
     Padre.PATH_LOCAL_PROG_INSTALADOR = Padre.PATH_LOCAL_INSTALADOR + "\\prog";
     Padre.seleccion = this.seleccion();
 }
        private void button1_Click(object sender, EventArgs e)
        {
            if (this.panelContenedor.Controls.Count > 0)
                this.panelContenedor.Controls.RemoveAt(0);
            this.panelContenedor.Controls.Clear();
            hijo++;
            Form fh = null;
            switch (hijo)
            {

                case 1:
                        fh = new Hijo1();
                        break;
                case 2:
                        fh = new Hijo2();
                        break;
                case 3:
                        fh = new Hijo3();
                        break;
                case 4:
                        {
                            fh = new Hijo4();
                            btn_siguiente.Visible = false;
                            finalizar.Visible = true;
                            btn_salir.Visible = false;
                            break;
                        }

            }
            fh.TopLevel = false;
            fh.FormBorderStyle = FormBorderStyle.None;
            fh.Dock = DockStyle.Fill;
            
            this.panelContenedor.Controls.Add(fh);
            this.panelContenedor.Tag = fh;
            fh.Show();
            this.panelContenedor.Refresh();
        }