Board index » DotNet » Drag and Drop into Listview
|
Daljit
|
Drag and Drop into Listview
DotNet369
I am having problems with drag and drop into a listview. I am able to drag and drop items from within the listview, as well as drag items from the listview and drop into a picturebox. However, I am not able to drag the text or image from the picturebox to the listview. In the listview_dragenter function, I have e.Effects = DragDropEffects.Copy (I have also tried e.Effects = DragDropEffects.Move, but it does not help either), which is the same as what I have for the picturebox_dragenter function. However, when I try to drag from the picturebox to the listview, the cursor gives the same effect as DragDropEffects.None, and the listview.DragDrop function never gets called. Does anyone have any ideas of anything I am doing wrong? Thanks. - |
