>The nXCoord, nYCoord of the MouseMove method of a form or form object reveals the coordinates of the mouse (cursor) within the form. How can one determine those coordinates relative to its position on the screen? Must you make a calculation of all the factors such as Sysmetric(1) adn Sysmetric(2) together with _Screen .Left and .Top and Form.Left and Form.Top? What if the application and or form is moved on the desktop?
>
>Thanks,
>
>dg
May be you can use instead Windows API GetCursorPos function.
If it's not broken, fix it until it is.
My Blog