Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO: Disallow certain drag-drop operations when dragging from FileView to an external place

 
Subscribe to the RSS feed for this forum  Forum Index -> FileView.Net/WPF
View previous topic :: View next topic  
Author Message
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
Back to top
Display posts from previous:   
Forum Index -> FileView.Net/WPF All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group