Drag-drop from list view to tabpage

  • Thread starter Thread starter djjaan
  • Start date Start date
D

djjaan

I am having difficulties with drag-n-drop from list view to tab page
using C#.
I have several tabpages on tab control, and each TabPage has AllowDrop
property set to True. Event DragEnter fires properly, but somehow,
dragrdop does not occur, and cursor does not change ---

// tp is a tabpage
private void tp_DragEnter(object sender, DragEventArgs e) {
e.Effect = DragDropEffects.Move;
}

// CustomListView is a listview
private void CustomListView_ItemDrag(object sender, ItemDragEventArgs
e) {
//Begins a drag-and-drop operation in the ListView control.
this.DoDragDrop(this.SelectedItems, DragDropEffects.Move);
}

What am I doing wrong?
 
Back
Top