获取控件的坐标

            var s = PointToScreen(txt1.Location);

  获取控件的坐标   

var s = PointToScreen(控件名.Location);

    txt1中txtbox控件名

原文地址:https://www.cnblogs.com/Ares-blog/p/3872138.html