Implementing drag and drop events

I have a .NET application that has an ESRI map control on it.  The map control has one drag and drop event called <map name>_OnOleDrop.  The problem is this event only gets hit if I am dragging something from somewhere off of the map control.  For instance, dragging a file from Windows Explorer and dropping it on the map.  I want to drag one bitmap that is on the map and drop it on another bitmap that is on the map. Can I implement my own functions to do this, and if so how? Sould I just try using the mouse up and mouse down events and changing the cursor?
screen-shot.doc
MEINMELAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Arthur_WoodConnect With a Mentor Commented:
Unless you have access to the source code for the ESRI control, which obviously you don't, you cannot add your own events to those supports by the control.  To be able to Drag something, you need to implement an OnOLEDrag event, which you cannot do.
You can try the Mouse Down and Mouse Up events, but you may not be able to grab the bitmap from the ESRI Control.
 
AW
0
 
MEINMELAuthor Commented:
Thank you, Arthur.  I can get the bitmap's 'id' which is associated to a DataTable row, so I guess the Mouse events are the way to go.
0
All Courses

From novice to tech pro — start learning today.