获取控件的坐标 var s = PointToScreen(txt1.Location); 获取控件的坐标 var s = PointToScreen(控件名.Location); txt1中txtbox控件名