visual-studio-2010

VS2010 thread data stack

I just found out how to break into the SetTimer function inside a windows dll (user32.dll). link text However i need to know what arguments its called with. I think that the arguments are pushed onto the data stack right before calling the function, but I have found no way to display a threads data stack in visual studio 2010. ...

VS 2010: Prevent display of Build Summary in the output window

In Visual Studio 2008 when you build in 'quiet' mode the build output window looks something like this: Compile complete -- 0 errors, 0 warnings ------ Build started: Project: JLTA.JBS.UI.Office.VSTODocument, Configuration: Debug Any CPU ------ ------ Build started: Project: JLTA.JBS.UI.Office.VSTOWorkbook, Configuration: Debug Any CPU ...

Team City build fails after upgrade to VS 2010

Hi All, I have a project that currently compiles happily on my dev machine using VS 2010 (presumably using MSBUILD v4.0), but it fails under MSBUILD v3.5 in Team City (running on a VM based on Win 2003 server w/ .NET 2, 3.5 and 4 installed). This project is newly upgraded to 2010, and is now failing on the CI build. I've Googled this an...

How can I disable or control Visual Studio 2010 tab groups?

I seem to have accidentally created Visual Studio 2010 tab groups which means that some documents I open appear in a new vertical tab group. How can I stop this happening? ...

VS2010 Designer Shorcuts

I have the VS2010 shotcuts guide published in msdn and I can't find shorcuts to improve my productivity when i'm using the designer (in my case I spend most of my time in winforms, but this is extensible to WPF too). Are there any shorcut/keybinding than could help me to design my forms in less time? Thanks. ...

How do I change colors for the F# interactive shell in Visual Studio 2010

Like http://stackoverflow.com/questions/316161/how-do-i-change-colors-for-the-f-interactive-shell, but Visual Studio 2010 (RTM) this time. I tried changing the "Read-Only Region" background color, restarted visual studio and the background color isn't the one I picked. ...

Where to place an unmanaged DLL for use importing into a C# program?

This must be a really stupid question, but I'm still very green when it comes to C#. Anyway, I've got a DLL and I'm importing it with a line like this: [DllImport(@"MyCoolDll")] I've lifted this straight from the demo app provided by the vendor, but it keep complaining that it can't find the DLL. The actual error (from Visual Studio ...

Visual Studio 2010 - WDP or Publish for automated deployment?

I'm about to upgrade to Visual Studio 2010, and I'm learning that there are now a few options for deploying web application projects. I've been using Web Deployment Projects in 2008, and my initial thought was to do the same in 2010. Is there any advantage to using Publish or the Web Deployment Tool over Web Deployment Projects? I nee...

Visual Studio 2010 changes files to wrong encoding

I've been annoyed by this for a long time now. Somehow Visual Studio 2010 (VS2008 too IIRC) changes the encoding of my files from "Unicode (UTF-8 with signature) - Codepage 65001" to "Western European (Windows) - Codepage 1252". I have a faint idea that it's either ReSharper or VisualSVN, that's doing the character encoding changes, but...

VB 2010, how to remove data source?

I'm using VB 2010. Added a data source. You can see it in the "Data Sources" window. There are options to refresh and add more data sources. But no option to remove a data source. Obviously I'm missing something. How do I remove a data source? ...

query a database and add entry if entry not already present

I would like to add a way to see if an entry is already in a connected database in the following code and if it is, not to add the entry and pop up a dialog saying something to the effect of "already been scanned" and if it is not to proceed as usual. a simple if statement should do. Using connection As New SqlClient.SqlConn...

Assembly runtime version v2.0 in Visual Studio 2010 .net 4 project

Hello, I downloaded a library(SquishIt) I want to use in a Console Application. I am working in Visual Studio 2010 so the Target framework is set to ".Net Framework 4" in the properties of the application. This causes the following error in my code: The type or namespace name 'SquishIt' could not be found (are you missing a using di...

Error using 'var' after upgrading to Visual Studio 2010

Hi everyone, We just recently upgraded from VS2008 to VS2010. Our project compiles fine; but when we go to run the Web Application, we get the following error when opening Default.aspx: Server Error in '/' Application. Compilation Error Description: An error occurred during the compilation of a resource required to service th...

VS2010 - File New Menu is missing "New Project"

A coworker just installed Visual-Studio-2010 Premium from MSDN. The install acted like it worked fine, but when he clicks the "File" menu, he only has "new file". On my installation, I see a "New" menu with a sub-menu that contains Projects, Files, Team Projects. Any ideas of things to check or how to fix his installation. I think ...

C# Label Properties won't update upon resize

I recently started getting acquainted with Visual Studio 2010 and C# for an internship. C# doesn't include a built-in InputBox function, so I made my own form, with a text box, two buttons and a simple label. I have a function set up to allow the programmer to call the form in regular format (where the user enters input via the textbox)...

Is it possible to link Web.config transform with publising profile?

Currently I can easily setup Web.config transform based on build configuration, e.g. use connectionString=server;.. for Debug and connectionString=./SQLExpress;.. for Release. But is it possible to do some Web.config transformation basing on web publish profile? I.e. use connectionString=server1;.. for profile Server1 and connectionStri...

.lib and .dll Backward Compatibility

I currently have a VS6 unmanaged C library that I deliver as either a .lib or .dll. I want to upgrade to VS2010 but I still have users that are in VS6, VS2005, and VS2008. Can a .lib or .dll built in VS2010 be used in VS6, VS2005, or VS2008? Thanks! ...

Problem with VS 2010 IDE when removing event handler using properties window

Here's the steps to reproduce the problem : Create a c# project with a form with 1 control, let's say a textbox. Using the properties window (lightning bolt thingy), add a "click" event. Write some code in that method. Using the properties window, remove the content of the "click" event cell. I would like to know why is the code from...

What are the limitations of Visual Web Developer Express 2010?

What are the limitations of Visual Web Developer Express 2010 when compared to the Professional and Ultimate and other non-free versions? ...

blank pages/routing issue with asp.net mvc 2 iis7 integrated windows7 vs2010

I've been searching though a number of posts and still can't seem to get a straight answer or at least one that works for me. From what I can tell is is some kind of routing issue. In fact I'm pretty certain of it. When I visit any of my web pages it comes back as a blank page with no data. Also I am using VS2010 asp.net mvc2 on window7...