void openPanel(Form Panel, string Tittle, object sender) { //Muestra/Oculta el boton para cerrar ventana if ((Button)sender == this.btnClosePanel || (Button)sender == null) { btnClosePanel.Visible = false; lblDate.Visible = false; lblHour.Visible = false; TimeGetter.Stop(); } else { btnClosePanel.Visible = true; lblDate.Visible = true; lblHour.Visible = true; TimeGetter.Start(); } this.lblTitle.Text = Tittle; //Abre nueva ventana en el panel contenedor if (this.containerPanel.Controls.Count > 0) { DisposeSon(); } Son = Panel as Form; Son.TopLevel = false; Son.Dock = DockStyle.Fill; this.containerPanel.Controls.Add(Son); this.containerPanel.Tag = Son; Son.Show(); }