Is there any way to get where on the form the mouse is and move an image accordingly.

Code:
Type POINTAPI 'Declare types
    x As Long
    y As Long
End Type

Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long 'Declare API
This is just returning X,Y position across the screen not just the form. How can i get it to limit itself to just the form and then get the placement based on the x, y?

Thanks.