Can I find out the return value before returning while debugging in Visual Studio?

Not that I know of. Note that if you do add a variable, it will get removed by the compiler in release builds anyway… Update: This functionality has been added to VS2013. You can see the return values in the autos windows or use $ReturnValue in the watch/immediate window. The value can only be seen … Read more

Missing XML comment for publicly visible type or member

5 options: Fill in the documentation comments (great, but time-consuming) Turn off the comment generation (in project properties) Disable the warning in project properties (in ‘Project properties’ go to Project properties -> Build > “Errors and warnings” (section), Suppress Warnings (textbox), add 1591 (comma separated list)). By default it will change Active Configuration, consider to … Read more

Stop Visual Studio from launching a new browser window when starting debug?

Open your startup project’s properties (Project → {ProjectName} Properties… from the main menu or right click your project in the Solution Explorer and choose Properties), then navigate to the Web tab and under Start Action choose Don’t open a page. Wait for a request from an external application. You will still be able to use … Read more

Cannot Connect to Server – A network-related or instance-specific error

I found the following techniques helpful: Make sure your database engine is configured to accept remote connections: Start > All Programs > SQL Server 2005 > Configuration Tools > SQL Server Surface Area Configuration Click on Surface Area Configuration for Services and Connections Select the instance that is having a problem > Database Engine > … Read more

Proper way to rename solution (and directories) in Visual Studio

Manually edit .sln file This method is entirely aimed at renaming the directory for the project, as viewed in Windows Explorer. This method does not suffer from the problems in the Remove/add project file method below (references disappearing), but it can result in problems if your project is under source control (see notes below). This … Read more

Is there a format code shortcut for Visual Studio?

Visual Studio with C# key bindings To answer the specific question, in C# you are likely to be using the C# keyboard mapping scheme, which will use these hotkeys by default: Ctrl+E, Ctrl+D to format the entire document. Ctrl+E, Ctrl+F to format the selection. You can change these in menu Tools → Options → Environment … Read more

The name ‘ConfigurationManager’ does not exist in the current context

It’s not only necessary to use the namespace System.Configuration. You have also to add the reference to the assembly System.Configuration.dll , by Right-click on the References / Dependencies Choose Add Reference Find and add System.Configuration. This will work for sure. Also for the NameValueCollection you have to write: using System.Collections.Specialized;

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)