获取屏幕的长宽像素
int xWidth = SystemInformation.PrimaryMonitorSize.Width;//获取显示器屏幕宽度
int yHeight = SystemInformation.PrimaryMonitorSize.Height;//高度
Button.Location = new Point(xWidth / 2, yHeight / 2 + 100); //设置按钮显示位置
int xWidth = SystemInformation.PrimaryMonitorSize.Width;//获取显示器屏幕宽度
int yHeight = SystemInformation.PrimaryMonitorSize.Height;//高度
Button.Location = new Point(xWidth / 2, yHeight / 2 + 100); //设置按钮显示位置