WinForm 窗体显示位置       

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

相关文章:

  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-31
猜你喜欢
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2021-09-13
相关资源
相似解决方案