110,545
社区成员
发帖
与我相关
我的任务
分享
Control control = myButton1;
Point showPoint = new Point();
while (control != this)
{
showPoint.X += control.Location.X;
showPoint.Y += control.Location.Y;
control = control.Parent;
}
showPoint.X += control.Location.X;
showPoint.Y += control.Location.Y;