Run to cursor in VisualStudio 2012 [duplicate] - c#

This question already has answers here:
What is the shortcut key for Run to cursor
(4 answers)
Closed 3 years ago.
I can not see the Run To Cursor in VS 2012 when I am developing in C#. I checked the tool bar and also DEBUG menu and in both places there is no such entry. Where can I find this option.

You can still use the keyboard shortcut Ctrl+F10. Otherwise you can right click on the line you want to run to and select Run to cursor.
You can add the button to the toolbar by selecting Add or Remove buttons on the Debug toolbar and then selecting Customize.

Related

Weird cursor glitch in Visual Studio [duplicate]

This question already has answers here:
Text overwrite in visual studio 2010
(11 answers)
Closed 8 months ago.
This weird text cursor glitch just happened to me in Visual Studio where instead of the normal text cursor it replaced it with a gray blinking cursor that is super buggy. Instead of working like a normal text cursor, it deletes/replaces the character behind the selected character when I delete that letter. So for example (using the picture above), it would delete the a instead of deleting the highlighted letter, which is m. It's really hard to explain but this cursor is super buggy and weird. I don't know if this is a bug or a keybind that I accidentally triggered
Press "insert"/"ins" key from your keyboard. Sometimes you need to click Fn + "insert" key.

How do I hide / unhide comment section in Visual Studio? [duplicate]

This question already has answers here:
C# hide and unhide comments
(6 answers)
Closed 1 year ago.
I need to hide some comments which cannot be collapsed in some cases. What is the best practice to do it?
There are some methods. But I prefer is using these two, since they are manageable:
Hide Selection command using shortcut keys:
Simply select your code either it's comment or working code and the just press:
Ctrl+M, Ctrl+H -> to hide (this simply collapse your selected section and make small box preview)
Ctrl+M, Ctrl+U -> to uhide
Try using region:
#region region_name
//your stuff
#endregion

Change cursor while mouse dragging [duplicate]

This question already has answers here:
How can i change the cursor (image) in the whole windows OS
(3 answers)
Closed 7 years ago.
I would like to implement the next construction in .NET in a WPF application.
There is a window, and in it there is a little picture, e.g.: 16×16.
If i move the mouse above the picture, and pressed the left button (without release), the cursor will change to this picture until i release the button.
Between the press and release i would like to drag out this cursor image outside the application window.
How can i implement this feature without modifying system registry values?
Thanks in advance,
Peter
You cannot change the Windows cursor without changing the registry. This has been discussed before: How can i change the cursor (image) in the whole windows OS

Best way to insert control into tab order? [duplicate]

This question already has answers here:
Setting the TabIndex property of many form controls in Visual Studio?
(4 answers)
Closed 9 years ago.
If there is an existing tab order on a large set of controls on a form, what is the easiest way to insert a control in the middle of that tab order without having to re-number the tab order of all the controls after the one inserted?
Visual Studio has a tool for that. It allows you to click the taborder you want - by selecting the control in the order you want:
the blue boxes(with white numbers) are the current taborder, and white boxes are the new taborder.
This might be helpful to you.
(new TabOrderManager(this)).SetTabOrder(TabOrderManager.TabScheme.AcrossFirst);
Follow this link>
http://www.codeproject.com/Articles/8406/Automatic-Runtime-Tab-Order-Management-for-Windows

opening window when by special shortcut in C# [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I register a global hot key to say CTRL+SHIFT+(LETTER) using WPF and .NET 3.5?
Set global hotkeys using C#
I have a WPF app, by clicking close button or by clicking minimize button it hides but it still remains open in a tray icon . I want to know how can I open the app window with a special shortcut, for example by pressing Shift+Start.
Babylon do the same thing by F10 .
note : I want to do it in WPF
thanks

Categories