第2个回答 2011-08-16
private void button4_Click(object sender,EventArgs e)
{
this.Location = new Point(
(System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width-this.Width)/2,
(System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height-this.Height)/2
);
}