直接这样写就可以了
Dim point As Point = Forms("窗口1").Panel.PointToScreen(Forms("窗口1").Controls("Button1").BaseControl.Bounds.Location)msgbox(point.x & " " & point.y)