//当本窗体在屏幕的最左端或者最右端、最下端时 if (this.Left < 3 || (this.Left + this.Width) > (GetSystemMetrics(0) - 3) || (this.Top + this.Height) > (Screen.AllScreens[0].Bounds.Height - 3))
这句话没看懂,求解答。
GetSystemMetrics(0) 这函数我也不太懂,应该是取屏幕宽度。
Screen.AllScreens[0] 是系统屏幕对象的第一块屏幕(如果有多个显示器的话)
Bounds.Height 边框 Bounds 是一个 Rectangle 对象,这里取它的高。