Hello,

Trying to move an object inside Picturebox borders.

I've tried a few methods, with get/setcapture etc.. the following works best only if I could limit the dragging to the X position of the mouse?

Code:
ReleaseCapture
SendMessage picDraw.hwnd, &H112, &HF012&, 0
Is there a way to intervene and set the x/y pos?