关于Form窗体的StartPosition 属性如何设置的问题

1、让窗体在启动时在指定位置出现 

form1.StartPosition 
Manual 
CenterScreen 
WindowsDefaultLocation (default) 
WindowsDefaultBounds 
CenterParent // 父窗体的中间

只有在窗体启动前设置才有效。

故只有设置StartPosition 属性放在窗体构造函数中;而不能放在Load事件中。

也就是说在窗体第一次显示时的位置是跟窗体的StartPosition属性有关的,第一次显示以后就只和窗体的Location属性有关了

原文地址:https://www.cnblogs.com/51net/p/3522527.html