Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Sat Apr 25, 2009 10:02 am Post subject: HOWTO: Disallow certain drag-drop operations when dragging from FolderView to an external place |
|
|
To disallow certain drag-drop operations when dragging from FolderView to an external place, use following code in the FolderViewDragStart event handler:
[C#]
Code: | private void fldrView_FolderViewDragStart(object sender, FolderViewDragStartEventArgs e)
{
// Only allow items to be copied
e.Effects = DragDropEffects.Copy;
} |
[VB.Net]
Code: | Private Sub fldrView_FolderViewDragStart(ByVal sender As System.Object, ByVal e As LogicNP.FolderViewControl.FolderViewDragStartEventArgs) Handles fldrView.FolderViewDragStart
' Only allow items to be copied
e.Effects = DragDropEffects.Copy
End Sub |
|
|