使用Panel作为容器 Panel2.Visible = true; //显示 Panel1.Visible = false; //隐藏 转载于:https://www.cnblogs.com/wrld/p/10159918.html