也可以写代码实现:form1.top:=(screen.height-form1.height) div 2; form1.left:=(screen.width-form1.width) div 2;
把窗口的position属性值设置为poDesktopCenter即可!
屏幕中间是 poScreenCenterpoDesktopCenter是桌面中间如果你只有一个显示器的话。这两个无区别