VS2010 WPF debugging: TextBox typing is very slow, just me? - performance

I am creating a new application in .NET 4 and the TextBoxes are way too slow, I haven't applied any Styles, Bindings etc. just plain TextBox.
I tried to create a new project with a TextBox in Visual Studio 2008 and the TextBox works good.
Note: The problem only occurs in debug, when I run without debugging (^F5) it works good in VS2010 as well.
See the Microsoft Connect Bug Report I submitted.

It was because of the Intellitrace.
Once I disabled it everything works just fine.
Credit to Kris for his comment.

Related

DevExpress WinForms / GridControl - Can't open Grid Designer for inherited forms

I've been maintaining a suite of code for my employer for several years, and a new programmer started here recently that I've been training. As described in the subject, the Run Designer feature/button (as seen in screenshot below) isn't available to him for forms that I've overridden and customized. The Grid Designer is essential for modifying the data displayed by the grid. We've spent many days trying to figure this out, so I'm posting it here in case anyone else encounters this issue.
We're using DevExpress 14.1.6 with Visual Studio 2019 [16.11.11] (this pairing isn't officially supported). Both of us are on Windows 10.
Navigate to "DevExpress 14.1\Components\Tools\Components" in your program files. Open the file DXDesignKeys.exe and check both checkboxes (Enable design-time form skinning, and Enable visual inheritance for Developer Express controls used in Visual Studio) in the user interface, then click Apply and Close.

Visual Studio 2012 autocomplete in HTML files not working

Can someone else confirm that autocomplete HTML tags is not working in Visual Studio 2012?
You know, type <a> and VS2010 automatically inserts </a>. That doesn't seem to work in VS2012 at all - I tried this on 3 different machines (Windows 7, Windows 8 and Windows Server 2008), two of them had previously installed VS2010 but one was completely clean (fresh VS2012 install on Windows 8 Professional).
If someone can confirm, do you maybe have a solution for it? This is such a pain, it renders VS2012 broken for me.
I opened a Connect case here if you wish to vote on it:
http://connect.microsoft.com/VisualStudio/feedback/details/758970/auto-insert-closing-tag-in-html-files-razor-plain-html5-web-forms-does-not-work-in-vs2012-rtm
and another one by someone else:
http://connect.microsoft.com/VisualStudio/feedback/details/759416/auto-insert-close-tag-fails
Works for me.
Can you check in your VS options that Text Editor > HTML > Formatting > Auto insert close tag is on.
If it is, check specific settings of the a tag by clicking the Tag Specific Options button and selecting the Client HTML Tags > a option.
I worked with MS's Visual Studio 2012 team to figure out what was going on and it happens to be a locale related issue. It is actually a confirmed bug.
See this blog article for more information:
http://blogs.msdn.com/b/webdev/archive/2012/09/26/workaround-for-html-closing-tag-problem.aspx
I encountered the same disturbing action on the part of Visual Studio 2008; only it wasn't the editor.
The problem was simply an existing closing p tag quite a bit further down in the HTML source. Whenever I opened a new p tag, the HTML editor "saw" the existing closing tag and so did not generate one.
I found the problem by using the W3C Markup Validation Service (http://validator.w3.org/).
Hope that helps.

Visual studio 2010: Can't show design view

I have an problem in Visual Studio 2010:
I created an custom user control, that show some data, then I tryed to add it on a page.
When I did this, this error showed up... when I run (start debugging) my application, everything works fine, the only thing that is not working is Visual Studio design view.
What should I do to solve this?
Your control is displaying data - if it tries to get that data from a remote database (for example) that's not available at design time then this could cause the problem.
You need to either modify your code to cope with the data source being missing (probably a good idea anyway) or wrap the code in a "is this design mode" check.

VS.net 2008 issue with asp.net pages

I am having problem in using the source view of an asp.net page in VS.net 2008 IDE. I am not using Design view at all. IDE hangs a bit every now and then, when I use intellisense in it, and I scroll the page.
Please throw some light on it.
Such issues doesnt come up while editing the HTML page, and while editing same asp.net page with the HTML editor which can be configured using Tools -> Options menu option.
Read this Post
This might help to make your visual studio a bit faster in general. I am not very sure about the exact reason for the behavior you mentioned of your Visual Studio.
I suspect that it has something to do with Graphical Interfaces like Toolbox etc.
Thanks
I've had problems like that with Visual Studio before. The intensity of the problems seem to multiply exponentially as the size of the file I work with gets larger.
Here's what I'd reccomend:
Check and make sure Visual Studio is fully updated (Help > Check For Updates) ; there have been some patches released and they will help you immensly!
If your code has any breakpoints, disable them all and start afresh later (Debug > Disable All Breakpoints)
If that fails, here are some more optimizations you can try.
In my case, I think longer file is the culprit. I think partial page concept should be applicable to asp.net page too.

Visual Studio 2008 freezes when I edit XAML code

A few times a day my VS2008 SP1 freezes if I edit XAML code. It just got stuck and I have to kill the process.
It seems to be a problem with the IntelliSense or the spell-checking or whatever process is going on while I edit code.
The problem is very apparent if I copy+paste some code. Even if it is just one word. Many times VS2008 adds some additional commands in the code and messes things up completely.
This never happened with C# code only with XAML it does get stuck.
One more thing: It seems the problem only occurs when I edit control templates. I added a few control templates from the MSDN pages to my project. When I edit them - even doing simple things like changing brush colors - Visual Studio freezes (sometimes). So it seems it's not a general XAML problem it happens with control templates only.
You could try this update: Installing DExplorer after VS 2008 breaks xaml intellisense
EDIT: You could try closing the Properties window when editing XAML, it helped me before with ASP.NET.
Some other links:
Xaml Editor Crashes after Visual Studio 2008 SP1
Using the Source Code Editor for XAML in Visual Studio
After having this problem and hunting around on the interwebs I found this vsnet-crashes-when-editing-xaml
Which said, in summary, if you edit a xaml resource while something that uses said resource is open in a designer, then you'll be sorry.
So you can avoid the problem by
Closing the other designer windows;
Installing hotfix KB958017.

Resources