1.设置Panel位置大小
private void button2_Click(object sender, EventArgs e)
{
panel1.Visible = false;
panel2.Location = new Point(84,52);//设置位置
panel2.Size = new Size(150,60);
panel2.Visible = true;
}
2.设置窗体
this.Size = new Size(622, 500);