Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio does not let me drag drop items into it?

Using Visual studio 2010 I got problems when double-clicking, for example a config file (*.config). Visual Studio would open but give me a error message about parameters. If I simple try to drag and drop a file that Visual Studio usually can read in to it, the icon will give me the "not possible icon"?

I have now installed Visual Studio 2012 and it has the same problem?!

This makes my work a lot harder, it should be easy to just drag & drop files into Visual Studio, but it's not so? Now I have to manually find the file with the file menu?

Please note, I have re-installed the computer before installing Visual Studio 2012.

like image 932
Banshee Avatar asked Mar 05 '13 14:03

Banshee


People also ask

Why is dragging and dropping not working?

If you can't use your mouse to drag and drop, your mouse's drivers may need updating. This goes double if you're using a laptop and you can still drag and drop using the trackpad. Right-click the Start button and select Device Manager. Extend the Mice and other pointing devices menu.

Does Visual Studio support drag and drop?

You can add handlers for drag-and-drop events to your DSL, so that users can drag items onto your diagram from other diagrams or from other parts of Visual Studio. You can also add handlers for events such as double-clicks. Together, drag-and-drop and double-click handlers are known as gesture handlers.

Why can't I drag and drop in Windows 10?

When drag and drop doesn't work, left click a file in Windows Explorer or File Explorer, and keep the left click mouse button pressed. While the left click button is held down, press the Escape key on your keyboard, once.


1 Answers

On Windows Vista and newer Windows Explorer runs with medium integrity level. If you run Visual Studio as administrator (high integrity level) then for security reasons OS will disable drag and drop from Explorer to Visual Studio.

You can either run Visual Studio as normal user or you can install VSCommands for Visual Studio 2012 extension. It has several features that can help with this such as:

  • Elevated Windows Explorer - small tool which looks like Windows Explorer but runs with elevated permissions allowing Drag And Drop
  • Directory Explorer - tool window inside Visual Studio which again looks like Windows Explorer and allows Drag And Drop
  • Run Visual Studio with medium integrity - allows Drag And Drop from Windows Explorer, but you won't be able to attach to processes run by other users (e.g. IIS)
like image 145
user503386 Avatar answered Sep 27 '22 20:09

user503386