Why listview cannot received the OnDragDrop event.
-
Two listview are placed on the form. Then select one item in listviewA and draw it to lsitviewB , why the listViewB cannot get the OnDragDrop event. Does any other configure need to set ? when debuging, how to see all the message in this form?
-
Two listview are placed on the form. Then select one item in listviewA and draw it to lsitviewB , why the listViewB cannot get the OnDragDrop event. Does any other configure need to set ? when debuging, how to see all the message in this form?
AllowDrop
option in the properties for the listView control must be set toTrue
. Regards, Nuri Ismail -
AllowDrop
option in the properties for the listView control must be set toTrue
. Regards, Nuri IsmailThe AllowDrop value has been setten to true, but the program still cannot get the DragDrop message. But the DragEnter message can be received.
-
The AllowDrop value has been setten to true, but the program still cannot get the DragDrop message. But the DragEnter message can be received.
Fired.Fish.Gmail wrote:
the program still cannot get the DragDrop message.
First you have to check if you correctly set the DragDrop event handler. It's very hard to guess where is the problem without a code fragment. You can compare your code with some examples which demonstrate the Drag and Drop concept. --> Here[^] is an example that implements exactly the Drag and Drop operations between 2 ListViews. --> Here[^] in the example part of this documentation you will find a brief explanation of Drag and Drop concept. The provided example is about drag and drop implementation between 2 ListBox controls. I hope this helps. :) Regards Nuri Ismail
-
Fired.Fish.Gmail wrote:
the program still cannot get the DragDrop message.
First you have to check if you correctly set the DragDrop event handler. It's very hard to guess where is the problem without a code fragment. You can compare your code with some examples which demonstrate the Drag and Drop concept. --> Here[^] is an example that implements exactly the Drag and Drop operations between 2 ListViews. --> Here[^] in the example part of this documentation you will find a brief explanation of Drag and Drop concept. The provided example is about drag and drop implementation between 2 ListBox controls. I hope this helps. :) Regards Nuri Ismail
Thanks Nuri I know that can not receive the DragDrop event because in the DragOver event, the e.Effect was set as Link. But the AllowEffect is ALL(Copy|Move) so the DragDrop event cannot do.