Private Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As Long
Private Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Private Sub Form_Load()
Dim tR As RECT
Call GetWindowRect(Me.Command1.hwnd, tR)
MsgBox tR.Left & " " & tR.Top
End Sub