Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Implementing drag and drop events

Posted on 2009-07-09
2
Medium Priority
?
330 Views
Last Modified: 2012-05-07
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
0
Comment
Question by:MEINMEL
2 Comments
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 2000 total points
ID: 24827021
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
 

Author Closing Comment

by:MEINMEL
ID: 31601614
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

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Iteration: Iteration is repetition of a process. A student who goes to school repeats the process of going to school everyday until graduation. We go to grocery store at least once or twice a month to buy products. We repeat this process every mont…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question