private void button1_Click(object sender, EventArgs e)
{
panel1.Controls.Clear();
WebBrowser wb = new WebBrowser();
wb.Dock = DockStyle.Fill;
panel1.Controls.Add(wb);
}
private void button2_Click(object sender, EventArgs e)
{
//GC.Collect();
panel1.Controls.Clear();
UC uc = new UC();
uc.Dock = DockStyle.Fill;
panel1.Controls.Add(uc);
}
转载于:https://www.cnblogs.com/jizhiqiliao/p/9995743.html