我是用C#开发的,非智能项目的FORM居中很容易,Form有个startposition属性,
但智能项目的FORM没这个属性。
方法(老方法):
int DeskWidth=Screen.PrimaryScreen.WorkingArea.Width;
int DeskHeight=Screen.PrimaryScreen.WorkingArea.Height;
this.left=(DeskWidth-this.Width)/2
this.top=(DeskHeight-this.Height)/2