I have an application that requires dragging and dropping onto ArcGIS Engine's MapControl in a Windowsformhost. I have set the Allowdrop property on both the host and the control itself and it still does not allow me to drop on the control.

Is there a way to enable dropping on the MapControl?

  • Do you already have drag and drop working for a simple winforms based control (i.e. not the mapcontrol)? stackoverflow.com/questions/5304869/… Apr 4, 2011 at 14:34
  • We have Drag and Drop working pretty well in WPF controls like Listboxs and such. We fires a drag event already, it's just that I can't figure out how to let MapControl allow the drop and therefore extracting the data from the drag event. The allowdrop property seems to do nothing. =( Apr 4, 2011 at 14:54

1 Answer 1


you have to do the following:

1) Set AxMapControl.OleDropEnabled = true;

2) _AxMapControl.OnOleDrop += new IMapControlEvents2_Ax_OnOleDropEventHandler(AxMapControl_OnOleDrop);


private void mapControl_OnOleDrop(object sender, IMapControlEvents2_OnOleDropEvent e) 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.