Using data.SetData(DataFormats.FileDrop, true, new String[] @"C:\test.txt" ); will not set the clipboard DataObject properly. Tip! If you interrogate clipboard you have to reset it. From -us/dotnet/api/system.windows.forms.clipboard.setfiledroplist?view=netframework-4.0
The FileDrop class has a built-in demo that can be run in any of the following ways:
Ive been messing around with adding a file upload to my CRM events app. I have a list containing event data, which have buttons for adding new events, editing, deleting. Everything else works great, but im trying to add a filedrop zone to a modal button that is rendered in the list so as you click the "Add Images" modal button the modal shows up, and has the file drop zone in it. But there seems to be an issue with doing drop zones inside a list cause when i try to select a file, or multiple files it doesnt show the file name with the little x on the drop zone. If i take it out of the list on the main page it does show the file name with the x. Ive tried everything such as messing around with the form data key, etc but no luck after 2 hours of trying.
df19127ead