private void button3_Click(object sender, EventArgs e) { panel1.Controls.Clear(); MainUC MainPanel = new MainUC(); panel1.Controls.Add(MainPanel); MainPanel.Dock = DockStyle.Fill; }
public Form1() { InitializeComponent(); MainUC MainPanel = new MainUC(); panel1.Controls.Add(MainPanel); MainPanel.Dock = DockStyle.Fill; }