當前位置:編程學習大全網 - 電腦編程 - C#winfrom編程 如何獲取屏幕右下角的坐標? 或者如何將窗口顯示在屏幕的右下角!

C#winfrom編程 如何獲取屏幕右下角的坐標? 或者如何將窗口顯示在屏幕的右下角!

1. 獲得屏幕右下角坐標:

new Point(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width,System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height)

2. 將當前窗體顯示在屏幕右下角:

this.Location = new Point(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - this.Width, System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - this.Height);

  • 上一篇:小學生能考機器人5級嗎
  • 下一篇:火花思維的課怎麽學?
  • copyright 2024編程學習大全網