Drag-drop from list view to tabpage

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top