110,536
社区成员
发帖
与我相关
我的任务
分享
Point sp = new Point(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height) ;
this.Left = sp.X - this.Width; // dp.X + 600;
this.Top = (sp.Y - this.Height) / 2;
//
// 摘要:
// 将指定屏幕点的位置计算成工作区坐标。
//
// 参数:
// p:
// 要转换的屏幕坐标 System.Drawing.Point。
//
// 返回结果:
// 一个 System.Drawing.Point,它表示转换后的 System.Drawing.Point、p(以工作区坐标表示)。
public Point PointToClient(Point p);
//
// 摘要:
// 将指定工作区点的位置计算成屏幕坐标。
//
// 参数:
// p:
// 要转换的工作区坐标 System.Drawing.Point。
//
// 返回结果:
// 一个 System.Drawing.Point,它表示转换后的 System.Drawing.Point、p(以屏幕坐标表示)。
public Point PointToScreen(Point p);