c# - Visual Sudio 2010 Drag&Drop not working -


I just want to copy one file path but unfortunately I'm not able to do this. The strange thing is that syntaxEdit_DragEnter is killed but syntaxEdit_DragDrop is not!

  Private Zero syntaxEdit_DragEnter (Object Sender, System.Windows.Forms .DragEventArgs e) {e.ffect = DragDropEffects.Copy; Console.light line ("login d and d" + this.syntaxEdit.AllowDrop.ToString ()); } Private Zero syntaxEdit_DragDrop (Object Sender, System.Windows.Forms.DragEventArgs e) {MessageBox.Show ("syntaxEdit_DragDrop"); }  

syntaxEdit initalisazion:

  this.syntaxEdit.AllowDrop = true; This.syntaxEdit.DragDrop + = new system.window.form. DragAventHandler (this.syntaxEdit_DragDrop); This.syntaxEdit.DragEnter + = new System.Windows.Forms.DragEventHandler (this.syntaxEdit_DragEnter);  

PS: I VS Administrator is not running

Enter image details here

After

You need to install e.Effect DragEnter Code other than code> none to tell the system that the item can be removed from there.


Comments