General information
Category:
Forms & Form designer
Title:
Drag and Drop problems in forms.
Hello,
I have a very simple form that has one Shape that needs to be dragged and moved around the form. It moves around but not like how I expected. It only will move to the location of the mouse if the mouse moves WITHIN the borders of the shape.
So if I click and drag and drop all within the borders of the shape it'll move to that location. But if I click and drag and drop outside of the shape it does nothing.
Here is my code segment.
IN THE MOUSEDOWN EVENT
``````````````````````````````````````````````
this.drag(1)
IN THE MOUSEUP EVENT
``````````````````````````````````````````````
this.drag(2)
IN THE DRAGDROP EVENT
``````````````````````````````````````````````
oSource.Left = nXCoord
oSource.Top = nYCoord
Obviously I'm missing something, but I just don't see it. If anyone could point me in the correct direction I'd appreciate it.
Thanks,
Bryan
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only