I've found the problem. I've fired DoDragDrop on the BeforeClick-Event. MapPoint probably wait for the Events callback, but don't get one because DoDragDrop keeps the Event up until the mouse is released.
Now I have written a Event which starts the DoDragDrop Event async to the MapPoint BeforeClick-Event. Code: public event InitDragDropHandler InitDragDrop; public delegate void InitDragDropHandler(object sender, object data); public main() { this. InitDragDrop += new InitDragDropHandler(main_InitDragDrop); } void mappoint_BeforeClick(object sender, AxMapPoint.
_IMappointCtrlEvents_BeforeClickEvent e) { if (InitDragDrop! = null) { this. BeginInvoke(new ThreadStart(() => { InitDragDrop(mappoint, pps); })); } } void main_InitDragDrop(object sender, object data) { ((Control)sender).
DoDragDrop(data, DragDropEffects. Copy); }.
I'm a little surprised that works. I've used MapPoint application with other things on their own threads, but you have to be careful; and Windows does not like multiple threads using the same controls. – winwaed Jan 18 at 14:22 After starting a DoDragDrop from the thread, which mappoint also uses,...I think he mean in the same thread – edze Jan 18 at 14:38 @winwaed: Like edze said, the mappoint control runs in the mainthread, but thanks to begininvoke the InitDragDrop event is fired after the mappoints BeforeClick event is finished.
– Wowa Jan 18 at 14:44 ah okay- thanks. – winwaed Jan 18 at 16:09.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.