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 FolderView to an external place

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

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group