I am working on a project in Visual Studio 2013, and recently I have found that the controls on any form simply refuses to move when I use the mouse to drag and drop. Instead it lets me drag, then as soon as I move the cursor it snaps back into place. Then when I let go, it selects the control the cursor is hovering over.
The keyboard keys work fine, but I don't see why the program has simply changed the rules on me from a convenient system to an annoying and tedious one.
The controls are not locked and the problem effects every form. If it helps, I use Citrix as a thin client on my computer to access school programs.
Hi can you please check the CSS styles
setting:Tools--> Options-->HTML Designer-->CSS styling--> then check
the "Change position to absolute for controls added using toolbox,
paste or drag and drop" check Box.
It should work
Related
When using Visual Studio 2015 Community Edition my cursor frequently disappears when I perform the Ctrl+. shortcut to resolve missing dependencies. For example, if I am creating a new Entity Framework entity and want to add the [Required] attribute to one of my properties:
Type [Required]. The attribute gets a red squiggly underline.
Click Ctrl+. to bring up the suggested imports
Select the using System.ComponentModel.DataAnnotations option using the arrow keys
Press Enter to select it and import the using statement
Sometimes I can continue coding without any issues. But most of the time my cursor disappears and I have to click back on the code editor to get my cursor back.
It happens to me on several different computers using Windows 7, Windows 8.1, or Windows 10. I've tried resetting my VS2015 configurations to default, but it didn't seem to help. The only other thing I can think of that might be worth mentioning is that I'm use the Dark theme.
Has anyone else experienced this? Is there a setting change so that the editor keeps focus, or a keyboard shortcut to get the cursor back? It isn't the end of the world to use the mouse but I never had to do it in 2013 so it is slightly annoying.
I ran into the same issue, and found that if I went to my mouse properties and changed the default pointer for Text Select to one with white in it, I didn't lose the pointer in the editor. I don't know if this'll solve your issue, but it helped with mine.
I've had this problem as well, for me it seemed to be a glitch with the touch screen capabilities on my laptop. The cursor would disappear when using the track pad and moving into the work area in VS, and come back when I moved it outside to like solution explorer or similar.
Easily resolved by tapping the screen.
I had the missing cursor issue in VS 2015 Community Edition and it turns out the culprit was the Gotomeeting client software running on my desktop. I was accessing VS 2015 in an RDP session and as long as Gotomeeting was running on the desktop running the RDP client my VS 2015 cursor in the RDP session would disappear randomly.
I had the problem that the blinking cursor completely disappeared in Visual Studio 2017 (and probably other places as well). Found this old block post, that helped me:
I found the cause of the problem. I had also noticed that I did not have a text cursor (caret) in programs like Windows Live Mail. Somehow my caret size got changed to zero. The solution in Windows 7 was to go to Control Panel, Ease of Access Center, Make the computer easier to see, and under Make things on the screen easier to see set the thickness of the blinking cursor to 1 (mine was displaying a blank field). After applying the change, the text cursor displayed fine in Visual Studio Editor and Windows Live Mail.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/c7ba185e-1840-4649-984e-c12d5525baa2/cursor-not-visible-in-visual-studio-editor?forum=vseditor
None of the (many across web) posted solutions for the disappearing cursor worked. I found a solution that works for me go to:
Tools/Options/Environment/General/Window layout
there are 2 radio buttons:
Tabbed Documents
Multiple Documents
You must select one or the other. I switched to Multiple Documents and this solved the problem.
Details: this problem manifests when changing the focus to any other open window/application via Alt+Tab. On return, Vis Studio has no cursor visible. Ctrl+Tab is a sorry workaround, yet effective. But this fix is totally sat for me.
Try pressing the "insert" button. You might need to hold down the "fn" key for this.
I'm having a really annoying issue with visual studio 2012.
During Debug I was used to look at the results of objects setting breakpoints and then moving mouse over the object and start exploring.
Now on my laptop that has a screen width of 1280px, it's not possible because the variable values are not wrapped, and the box goes completely out of the screen.
see the picture below:
and I'm not able anymore to click on the plus sign on the far left to view all the elements of the IEnumerable, or List...etc..
Is there some settings I have to modify to make it work also on 1280px screen?
At the root level, it (a DataTip dialog) has an unpin icon. Click the icon and the dialog floats above any open windows, and you can drag the dialog to a comfortable place, so you can expand to view all the elements in the IEnumerable (hopefully 1280px is enough).
View data values in Data Tips in the code editor
1920px (or higher) is a better resolution.
I am using VS 2013 Professional. I am trying to make a website in ASP.net Web forms (C#). While using the web designer in visual studio, I cannot drag and drop elements vertically. In other words, no matter where I drop the element, it appears at the start of the line. I've done research and this appears to be a common problem. However, still no solution found. How do I enable FULL drag and drop control, not just vertically ?
You can move Controls freely in VS 2013 by:
Remove all current controls
Go to Tools > Options > Html Designer > CSS Styling > Change positioning to absolute for controls added using Toolbox, paste or drag and drop.
Now drag and drop a new control in page.
* 4. Click on the Label that appear above the control (asp:button#Button1 for instance) and move it any where you want.
A friendly piece of advice:
But it seems that you aren't familiar with web designing, this way is not recommended, it's not a WindowsForm, you deal with wide rang of browsers and resolutions.
In fact when you can move controls freely, you set style="position: absolute".
When your web page is finished, then open it and resize your browser, then you will completely understand what I'm saying.
If you want to design a real web page, you should go for CSS and do a little search about it.
I'm making my own draggable controls similar to tabs in Visual Studio. Default system drag and drop cannot achieve the effect, so I just handle control's MouseDown, MouseMove and MouseUp events. The effect works as charm, but it would be perfect if I could change the cursor while dragging the control, but it is NOT windows drag drop operation. I don't have DragEffect available.
Is it completely impossible?
BTW, I don't use windows drag and drop because I need my control to be dropped both on another display's desktop area or another control of my application. Try to drag Visual Studio tab to see the effect. Mine works exactly the same. I mean while dragging Visual Studio tab the cursor doesn't change. I repeat the question: is it impossible to change it to a drag cursor?
I just need system drag cursors data and set system cursor to one of them. I suppose it could be done via pinvoke somehow, but it beats me how. I don't want to set external bitmap as cursor, it has to be real, original drag cursor. It's a challenge :)
The Navigate Backward (Ctrl+-) and Forward (Ctrl+SHIFT+-) buttons on the IDE use to be controlled by the mouse lateral Back/Forward buttons in VS 2010.
In VS 2012, the mouse buttons only works in some cases, like going back after clicking in "Go To Definition" in a method call. They are not attached to the IDE buttons.
Trying to fix that, I've installed this plugin: Mouse Navigation
Well, it works fine until you use the "Go To Definition", after that, the embedded VS Back/Forward mouse functionality start to conflict with the plugin, resulting in messy behavior!
Am I the only one with this problem? I've tried to Google it, but I've found nothing.
This is really annoying! I hope someone can help me to solve that.
Edit:
As you can see at the marked answer, the plugin have been fixed by its developer thanks to this topic. The last version (2.2.0) is working fine.
Some clarifying:
Visual Studio (2012) separates the normal navigation from "click to go" navigation.
Normal navigation: mouse click anywhere in code editor, tab change also.
Click to go navigation: Go to definition, search result click. It is controlled by the buttons named: "Browse Back / Next" "Previous/Next Definition, Declaration or Reference". You can find it in the View custom toolbar.
The default VS mouse back/forward buttons are attached to the "Browse Back / Next" buttons, not to the Navigate back/forward.
The VS plugin Mouse Navigation sets the mouse buttons to the Navigate back/forward. The only remaining problem is that because VS doesn't consider "click to go" as normal navigation, when you click to go to a definition and try to go back using the Ctrl+- or mouse back, you will not return to the last position, but to the previous "Normal navigation" position.
My suggestion to the plugin developer is to try to make VS consider "click to go" navigation as normal ones, completely solving this issue.
I just updated the Mouse Navigation extension to improve reliability of the commands. For some reason I never updated the extension to properly use the new IMouseProcessorProvider interface when I migrated from Visual Studio 2008 to Visual Studio 2010, and that bug never bothered me enough to revisit the extension until today.
You should find that version 2.1.0 behaves properly in Visual Studio 2010-2013.
The reason it only half works without the plug-in is because the mouse forward/back buttons do not map to navigate forward/back but rather some other navigation command (which never made sense to me as to what it was doing).
The way I solved this problem is to use my mouse software (SetPoint from Logitech in my case) to bind mouse forward/back to CTRL+SHIFT+- and CTRL+- respectively, while Visual Studio is in the foreground. This leaves my back/forward buttons working correctly in other applications (web browser) but while in Visual Studio I get the expected functionality.
Also, Visual Studio 2013 does seem to have better mouse back/forward control... though I haven't been using it long enough to be able to say whether the problem is truly fixed.