Solved

Implementing drag and drop events

Posted on 2009-07-09
2
311 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 500 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Prime numbers are natural numbers greater than 1 that have only two divisors (the number itself and 1). By “divisible” we mean dividend % divisor = 0 (% indicates MODULAR. It gives the reminder of a division operation). We’ll follow multiple approac…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

773 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