visual-studio

How to Disable Visual Studio 2010 windows changing when debugging

When I'm working in VS.Net 2010, then start debugging, seems like a new window profile or something like that kicks in and rearranges/hides windows that I had open previously. Is there any way to disable this "feature"? ...

Dynamically Added Event Handler Not Firing

Here is a quick code snippet, that doesn't seem to work at all for me. I'm reading from a file to create a list of radio buttons. The problem is that when one of the radio buttons is clicked the Event Handler I have set up in the code doesn't fire. I have tested it over and over in debug mode with line breaks... all with no luck. Am I mi...

How to prevent macro redefinition

Hi all, after working some time in my project, this warning begin to appear: 2>Game.cpp 2>c:\program files\microsoft sdks\windows\v6.0a\include\windef.h(126) : warning C4005: 'APIENTRY' : redefinición de macro 2> c:\users\ferran\directo\gameprojects\dev-libs\glfw\include\glfw.h(72) : vea la definición anterior de 'APIENTRY' 2>c:...

Post build event to include a file to the project

I'd like to copy a file and include the file in the web project and would like to do this as a part of the Pre/Post build events. My understanding is that these events support DOS commands and I can use xcopy for copying a file, but I am not sure how I would update the csproj file to include the file in the project. ...

How to set the default .Net framework version for projects in visual studio 2010

How do you set the default framework version for new projects in Visual Studio 2010? ...

Debugging in VS 2010 when the host external program runs in XP compatibility mode

When debugging AutoCAD add-ons you set Visual Studio 2010 to start the AutoCAD exe first. If the AutoCAD .exe properties are set to run in compatibility mode for Windows XP (NOT the Virtual PC XP mode) will it mess things up? ie. is Visual Studio 2010 ok with this? The reason I'm leaning towards running older versions in compatibility m...

Right click context menu to adornment - Doesn't work and invokes the editor menu instead (VS2010)

I've made a Control in XAML and added it to the adornment layer, in the control I have a section that should spawn a context menu when right clicked (using TextBox.ContextMenu property). I've tested it in a regular WPF Window and it works great. However, when I tried the same in Visual Studio on an adornment layer I only got the VS2010 e...

Visual C++ Test project doesn't display standard output

I created a Visual C++ test project which contains printf statements. Unfortunately, I can't find a method to view the output of this. It isn't included in the output window. Any suggestions? ...

Adding References without Visual Studio

Hello...I am trying to learn log4Net, however, I do not have Visual Studio installed in my PC (due to lack of Administrative Privileges). And so, I am trying out my code by writing them in good old Notepad of Windows XP. In this, if I want to add a reference to log4net.dll, how do I do it? Sorry for being .NET naive. I am just learning!...

Customization for Visual Studio 2008 that opens MSDN Help in a browser when hitting F1

The MSDN help isn't very helpful in that its startup time is long and that it quite often doesn't get you to the correct help file. I always end up opening MSDN in a browser instead. Is there some customization for Visual Studio 2008 that opens MSDN Help in a browser when hitting F1? ...

Best practice on folder layout in revision control?

Hi, I'm just coming into a company on what is essentially my first gig as a team member rather than the sole Windows developer, and I'm not liking the current version control setup. We're developing for Windows machines using VB.net at the moment, with live software dating back to VS2005, being updated to newer Visual Studio versions a...

How to give escape characters a different color inside strings in VS editor?

There is no way to do this in the options (at least I couldn't find it). Is it possible though? I would like to have \n, \t, %s, etc. have different colors then the strings that contain them for better readability. ...

My Visual Studio is rendering my web pages twice in browser

Hi my VS is rendering my ASP.NET pages twice in the default IE browser when I press "View in browser" or "Start without debugging" button. This really puzzleds me. ...

How to disable automatic indenting when typing ':' in Visual Studio 2008

When i write a classes constructor typing : to start the initialization list of a C++ constructor Visual Studio indents the line when it is right after a namespace directive. Also when i type :: (scope resolution) Visual Studio indents the line, which i found very annoying since the indentation was correct in the first place and i always...

Unattended Install for Setup & Deployment project, VS 2005

Hi there, I have a setup & deployment project which includes a large C# project that i have created. I also have some prerequisites that i bootstrapped to the exe, although the MSI file is, as usual, just the project itself. I would like to create a complete unattended install, not just removing the User interface forms via the UI tab i...

vs 2008 no debugging

my debugging in visual studio 2008 has stopped working , the debugger doesn't hit any breakpoint . what should i do? ...

How to update data model class after manually changing .dbml file

Hello. Does anyone know how could I get the data model class updated after I make some custom changes in the .dbml file. I tried to manually mark some fields nullable in the .dbml, but changes are not visible in the code, no matter how many times I rebuild. I even tried to edit .dbml(xml) in an external tool, and then save, but no use....

Why Visual Studio removes the drive letter from the AssemblyReference RelativePath when editing a project?

Hello, using visual studio we always load and build references to a unit (R:). The problem is that when someone edits any project properties the drive letter is removed from the assembly path and then the build machine can not build the application. The project file looks like this when created: <References> <AssemblyReference ...

VS 2008 Professional, Smart Device .NET C# project - slow build

Hello I have VS 2008 Professional and a Smart Device .NET C# project. I have ~100 cs files in total. The build takes very long time, I have to wait for linker approx. 1min (60s) every time i compile the project. I have Core i3, 4GB RAM, 7200rpm disk. What may be the reason and how to optimize the build? Any Visual Studio options? Rega...

VIsual Studio 2010, easily maximize/minimize editor ?

Is there an easy way to maximize and minimize/restore an editor in Visual Studio ? To demonstrate, I'm looking for what Eclipse has: Normal Layout: Hit a key combo and you get this (This seems somewhat like Windows->AutoHide all in VS2010) Maximized Editor Now, another key combo , and you get back to the Normal Layout. That's the...