重写paint事件:
private void groupBox1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { e.Graphics.Clear(this.BackColor); }