C# Winform 如何获得窗体上控件相对于屏幕的位置

private Point LocationOnClient(Control c){ Point retval = new Point(0, 0); for (; c.Parent != null; c = c.Parent) { retval.Offset(c.Location); } return retval;}

你可能感兴趣的:(c,C#,null,WinForm)