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