private void MainForm_Load(object sender, EventArgs e) { NuevaRutinaScreen screen = new NuevaRutinaScreen() { TopLevel = false, AutoScroll = false }; panel1.Controls.Add(screen); screen.Show(); }
private void añadirButton_Click(object sender, EventArgs e) { panel1.Controls.Clear(); NuevaRutinaScreen screen = new NuevaRutinaScreen() { TopLevel = false, AutoScroll = false }; panel1.Controls.Add(screen); screen.Show(); }