WinForm 窗体显示位置
窗体显示的位置首先由窗体的StartPosition决定,FormStartPosition这个枚举值由如下几种情况 // 摘要: // 窗体的位置由 System.Windows.Forms.Control.Location 属性确定。 Manual = 0, // // 摘要: // 窗体在当前显示窗口中居中,其尺寸在窗体大小中指定。 CenterScreen = 1, // // 摘要: // 窗体定位在 Windows 默认位置,其尺寸在窗体大小中指定。 WindowsDefaultLocation = 2, // // 摘要: // 窗体定位在 Windows 默认位置,其边界也由 Windows 默认决定。 WindowsDefaultBounds = 3, // // 摘要: // 窗体在其父窗体中居中。 CenterParent = 4,