visual-studio-2005

Visual Studio 2005 Designer not adding controls to the aspx.Designer.cs

I'm not a fan of the Designer, I prefer to code straight to the ASPX page. However, since a reformat (and leading up to the reformat), the designer.cs files have not been updating correctly when manually coding to the .aspx file. This means my code behinds are not recognizing new controls and throwing compiler errors. How can this be pr...

How to assign keyboard shortcut to Source Control commands in Visual Studio 2008?

I use Visual C++ 2008 in Visual Studio 2008. I frequently use the following command to diff an open file against its most recent checked-in version: File | Source Control | Compare... I can also do the same thing by clicking on an icon in the Source Control toolbar. I'm not certain, but I believe this command is the same for any sou...

Visual Studio MSTest run failing to even start

I've got a bunch of unit tests built using Visual Studio 2005's built-in unit testing functionality. For the last little while, it's been taking absolutely forever to start the tests... Everything just sits there at "Pending" for two minutes or more. Now Visual Studio's decided to take things to a new level and never even start the tes...

Visual Studio 2005 Setup project application folder default location on potentially non-existent volume

I have a VS2005 solution that includes a setup project. The setup project specifies "d:\somefolder" as the Application Folder DefaultLocation property. When installing on a machine without any partitions mapped to "d:", the resulting installer craps out with the message "The volume d:\ is currently unavailable. Please select another."....

Determining 64-bit vs. 32-bit Windows

I'd like to configure visual studio 2005 to copy .dll's based on whether the OS is 64-bit or 32-bit during a build. I do not want to specify what the platform target is. My first attempt was to use a batch file to lookup the Windows version, but some 32-bit and 64-bit versions of Windows share the same version number. Anyone know of...

Visual Studio 2005 quick file search

In Eclispe you can do Ctrl+Shit+R and a Window popup where you can write the name of the file (or just the beginning of it) and to press enter to go directly to the file. What is the equivalence in Visual Studio 2005? (Ctrl+Shift+F is not what I would like). ...

Is VS Debugger Wrong? IndexOutOfRangeException thrown by the code: f++

Why is an exception being thrown in the "f++" part of the code below ("IndexOutOfRangeException was unhandled by user code"): for (int f = 0; f < gnf; f++) { fieldNames[g] = grid.FieldName(f); } The bug is in the "fieldNames[g] = ..." part of the code, my algorithm should be: for (int f = 0; f < gnf; f++) { fieldNam...

Visual Studio 2005 vs 2008 - What are the benefits?

What are the benefits of upgrading from Visual Studio 2005 to 2008? Any thoughts on whether it's worth the jump, or is it better to wait for whatever's coming next? ...

What is the best implementation of STL for VS2005?

I'm currently using default implementation of STL for VS2005 and I'm not really satisfied with it. Perhaps there is something better? ...

VS Setup Project: Uninstall other component on install

I am Creating a Visual Studio Setup project. I want to un-install another component from the system on the install of my component. And the another component is installed from my own setup created using Visual Studio. Currently when I am doing calling the un-insatll of the other component from the install action of the component. But th...

Why is Microsoft.SharePoint.Search.dll copied in my project?

When working on a VS2005 project that involves referencing Microsoft.SharePoint.dll, building the project causes Microsoft.SharePoint.Search.dll to be copied to my bin folder. Why is this? Okay, maybe it's just a bug, but I want to know the mechanism. [Edit: Copy local is most definitely turned off -- Microsoft.SharePoint.dll is not cop...

Set application icon from resources in VS 05

I know I can add a icon to the Resources.resx file of a project and then reference that icon from within the code. How do I set the icon of the entire EXE from the resources? All I see is a place to browse for another file. I want to use the current icon file that I have in my resources and not have to have a duplicate file in my projec...

Visual Studio 2003 Merge Modules

I am using Visual Studio 2005 to make an install. The application has a dependency on a DLL that was built with MFC 7.1 (from Visual Studio 2003). Are there merge modules for MFC 7.1 or other redistributables like there are for MFC 8? Where could they be found? ...

Can I create transparent buttons in Visual Studio 2005 with C#

I have a user interface that requires placing some round buttons in a C# project with some data behind them. The buttons are System.Windows.Forms.buttons and I have used a GIF image with transparency to create them. However, the transparent areas aren't transparent. I've looked for references online but haven't found any suggestions fo...

Explore containing folder instead of open containing folder

Hello, I use Visual Studio to do a lot of my coding. I find the open containing folder feature quite helpful. But I don't want the folder to be "opened" by the windows explorer, instead I want to "explore" the folder -- you know, get the nice little frame showing me all the other folders on the left hand side. Does anyone know how to do...

How best to deal with gigantic source code files in Visual Studio

I'm working on a project which makes substantial use of code generation. Some of the files it generates contain >0.25 million lines of code. VS (2K5) doesn't cope too badly, but R# (4.01) throws an out of memory exception every two minutes or so. Splitting them out into partial classes/separate files isn't an option in the immediate ter...

what is the difference between using shift-f5 or the red-X on the controlbox for terminating a debug session?

is there a difference in the dispose() functions being called ? ...

Is there a devenv flag to disable pdb generation at compile time?

Our continuous integration system currently runs a perl script to parse our sln/proj files to set the following options: DebugInformationFormat="0" GenerateDebugInformation="FALSE" Preventing generation of pdbs allows us to increase the parallelization of the CIS compile. However, this method seems hacky and occasionally fails - is th...

Need Help: VS 2005 Properties Changing

I am working in Visual Studio 2005. I have multiple splitters on the screen. I have set the splitters IsFixed and I have also set fixed panel sizes. In addition to this I have locked the control. For some reason, when I switch into debug mode the splitter distance value is changing entirely on its own. These changes do not take place wit...

Pitfalls in Upgrading from Visual Studio 2005 to Visual Studio 2008

I've read a number of posts touting the merits of migrating from VS 2005 to 2008. However, I'd love to hear what the various pitfalls are in actually doing the migration. We're about to migrate and I'd prefer knowing what speed bumps to anticipate and plan for instead of discovering them by surprise along the way. Any helpful guidance on...