日期:2014-05-18 浏览次数:20906 次
/// <summary> /// 转换坐标为父组件上的坐标 /// </summary> /// <param name="value">当前组件上的坐标</param> /// <param name="parent">父组件</param> /// <returns>返回Point</returns> public Point PointToParent(Point value, Control parent) { Point p = new Point(); p = this.PointToScreen(value); p = parent.PointToClient(p); return p; }