At it's simplest you'll need something like this in the Mousedown of the control:
[TT]
this.Drag() [/TT]
and this in the DragDrop of the form:
[TT]
oSource.Move(nXCoord, nYCoord) [/TT]
You'll need to add more code to allow for the offset between the mouse position and the top-left corner of the control but that's the core of the solution.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.