Solved

Implementing drag and drop events

Posted on 2009-07-09
2
307 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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now