刚开如把窗体的大小调成(0,0),AutoSize=true;就行了
private void button2_Click(object sender, EventArgs e) { Size size = new Size( this.pictureBox1.Size.Width + 100,this.pictureBox1.Size.Height + 100); this.Size = size; }大概可以这样写了