Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Implementing drag and drop events

Posted on 2009-07-09
2
Medium Priority
?
325 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Article by: Nadia
Linear search (searching each index in an array one by one) works almost everywhere but it is not optimal in many cases. Let's assume, we have a book which has 42949672960 pages. We also have a table of contents. Now we want to read the content on p…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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 tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

721 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