בעייה נוספת, לגבי DoDragDrop
אני מנסה להשתמש ב-DoDragDrop מאחד ה-controls שלי לספרייה כלשהי על-מנת להעתיק קובץ. הערך המוחזר הוא Copy, כלומר לכאורה ההעתקה הצליחה, אבל בתכלס הקובץ לא הועתק. הנה הקוד:
DataObject dataObject = new DataObject() ; string path = @"d:\test.txt" ; // this file exists dataObject.SetData(DataFormats.FileDrop, path) ; DragDropEffects effects = DoDragDrop(dataObject, DragDropEffects.Copy ) ; // effects == DragDropEffects.Copy , but the file was not copied!
מה הבעייה פה? תודה.