Browse by Tags

VB.NET IF() Coalesce and “Expression Expected” Error
I am trying to use the equivalent of the C# “??” operator in some VB.NET code that I am working in. This StackOverflow article for “ Is there a VB.NET equivalent for C#'s ?? operator? ” explains the VB.NET IF() statement syntax which is exactly what I...
Unable to close Visual Studio 2008
I ran into an issue with not being able to close Visual Studio 2008 today.  My Visual Studio 2008 solution opened and work fine but then when I tried to close it, Visual Studio would just freeze up.  Something was going on since the processor...
Visual Studio Shortcut: Surround With
I learned a new Visual Studio keyboard shortcut today that is really awesome; the “Surround With” shortcut.  You can trigger the Surround With context menu by pressing the Ctrl-K, Ctrl-S key combination when on a line of code. Ctrl-K, Ctrl-S means...
Visual Studio confused when there are multiple system.web sections in your web.config
I am trying to start debugging in Visual Studio for the website I am currently working on but Visual Studio is telling me that I have to enable debugging in the web.config to continue: But I clearly have debugging enabled: At first I chose the option...
How to change the Target Framework Version for a Visual Basic Project
Today I received the following warning message from Visual Studio while adding a reference in a Visual Basic project: The Target Framework version for the project ‘XXXX’ is higher than the current Target Framework version.  Would you like to add...
Visual Studio Error: The project file ' ' has been renamed or is no longer in the solution.
I received the vague error message “The project file ' ' has been renamed or is no longer in the solution” while building a Visual Studio solution.  I was unable to build any projects in the solution.  Rebuild and Clean were not working and...
How to show white space in Visual Studio
In Microsoft Word I usually have the paragraph symbol turned on to Show Hidden Formatting Symbols (white space) so that I can clearly see spaces, tabs, and other white space characters.  Up until recently I had no idea that Visual Studio had the...
How to quickly comment or uncomment lines of code in Visual Studio
When I am developing I am always trying to reduce the amount of time that my hands come off of the keyboard and have to move to the mouse. One of the frequent functions that I noticed required me to move my hand off of the keyboard to the mouse is commenting...
Machine Setup: How to enable Line Numbers in Visual Studio and SQL Server Management Studio
I like to have line numbers visible when working in both Visual Studio and SQL Server Management Studio.  By default, line numbers are turned off in both environments.  One of the first things I do when setting up a new development machine is...
How to quickly format a C# class file – Ctrl-K, Ctrl-D
In C# as you are typing in a class file the indenting of your code can easily get out of alignment making the code hard to read.  Where does your class, if block, or method begin and end?? You can manually go and fix each line but there is a much...
More Posts Next page »

Search

Go

This Blog

News

Syndication