Visual studio 2008 drag and drop file
Can you expand on what you get, I can do this ok Drag from windows explorer into a VS solution? Drag and drop doesn't work in Visual Studio , but does out of it. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 12 years, 7 months ago. Active 8 years, 2 months ago. Viewed 4k times. Is there some way to enable Visual Studio to accept dropped files from Windows explorer? Surely there has to be some way to do this. Notify me of new comments via email. Notify me of new posts via email. NET developer in Budapest, Hungary. Blog at WordPress.
Follow: RSS Twitter. Home About me Contact. Here is the explanation : When you run Visual Studio as Administrator it is running with different security permissions than your file system explorer.
The Data object is used to retrieve the data. The Data object's GetData method returns an array of strings that contain the full path names of the files that were dragged to the ListBox control. You can use this file path information to perform whatever operations are needed on the files. For example, you can use classes in the System. IO namespace to open and read the files, move the files, or copy the files to a new location. In this example, you just add the full path to the files that are dragged to the ListBox control.
Create a new Windows Forms application in Visual C. NET or Visual C HINT: If you like the SendTo folder approach, there is more you can do - for example you can open a command shell directly via SendTo and it starts with the right path the path where the selected file resides. Look here to find out how to do that. You can even combine it with the script to gain elevated rights , with only a little extra effort. In the Windows start menu , locate the Visual Studio icon.
Right-click to bring up the context menu. Windows Explorer opens with the Visual Studio shortcut highlighted. The latest release allows you to select two files and compare them:. I have always been a fan of WinMerge which is an open source project. You can plug it into Visual Studio fairly easily.
0コメント