visual-studio

How do I make Visual Studio always show the Source view instead of the Design view when hitting F7 from a codebehind page?

The F7 key in Visual Studio - it allows the user to switch between the code for a designer element (e.g. a Windows Form or a Web User Control). This works great in Windows forms: when I'm in the .cs file for a visual element (e.g. a User Control), it shows me the visual designer. It doesn't work so great for me in ASP.NET: When I'm ...

Choosing between VS 2005/2008/2010 for independent learning.

I am working helpdesk software support on our proprietary programs. Whenever I run into a bug, I am supposed to try and get as much info as possible so the developers can fix the source. I have a very limited programming background but we can access the source and try and get as close to possible so the devs won't give us too much grie...

Developing Web Projects when working with Team members not using Visual Studio

Does anyone have any good suggestions for working on teams where some members do not use Visual Studio? What are other people doing? This is a general questions, but my specific situation is developing ASP.NET MVC applications using Visual Studio 2008 and SVN for source control. In our office we have small teams. Usually we have one or...

CLR - Common language runtime detected an invalid program in VS.NET

I have been using Visual Studio 2008 quite long but lately I am getting this message when I am developing an application in C#: Common language runtime detected an invalid program This happens when I try to enter to the properties of a component (text masked box properties, tool box property etc..). But it really became a problem w...

disconnect visual studio solution from sourcesafe?

Hi everyone, I'm working on a project for a firm that has their main solution in sourcesafe. The other developers are working like beavers on new stuff, and I'd like to be able to download the source from VSS, then disconnect it. So I can get up to speed on the code without risk of bothering anyone else's code. Is it possible to do t...

Harddrive rpms really significant for Visual Studion development experience?

Is Harddrive rpms really significant for Visual Studio development experience? ...

Is including C++ source files an approved method ?

I have a large C++ file (SS.cpp) which I decided to split in smaller files so that I can navigate it without the need of aspirins. So I created SS_main.cpp SS_screen.cpp SS_disk.cpp SS_web.cpp SS_functions.cpp and cut-pasted all the functions from the initial SS.cpp file to them. And finally I included them in the original file : #...

Visual Studio 2008 Debugger is not reporting some common errors

I'm currently using VS2008 and VB.NET. When I attempt to populate a Queue that has not been instantiated with objects, the program simply hangs without throwing an error. I have run into this issue multiple times in different parts of the program in the past few days. What could be the cause of this? Here's the code: Structure Conso...

Find all folders excluding some paths

Hi, In visual studio when searching for files, how can I find all files that do not contain a certain string in their directory path or file name? For example: I want to find all files that have the word MainRegion but I do not want files such as: c:\myfiles\file1Fixture.cs c:\myfiles\somedirectory\a.b.tests\filename.xaml So I wan...

Visual Studio Dataset Designer Null

Visual Studio 2008 has a bug in that you cannot use the dataset designer to set an int type field to be nullable. (There are error reports going back to Visual Studio 2005 but it seems this has never been addressed.) The only selectable behaviour is to emit code that raises an exception if an null value is passed back from the database...

How to initialize my web control properties at design-time?

Hey, I need a way to initialize my web control's properties when it's dropped on the designer area. As "initialize" I mean: If my control has a property Prop1. I need to assign a value to Prop1 and I need this value to be persisted on ASPx. I tried the following: Implement InitializeNewComponent on my ControlDesigner: This method is ...

Understanding positioning for method created in Visual Studio GUI

Visual Studio has ways to automatically create a method. For example, you could double click on a button in the designer to create an event handler method or you could use the dropdown boxes at the top of the code editor to create an override or an event handler. For me, these methods seem to never place the new method at a reasonable p...

AutoClose parens, braces, etc in Eclipse and in Visual Studio

I want to know the name of the specific editing mode in which the editor automatically closes the paren after you write (, and then you can jump right after the ) when you press a tab. It does the same thing with ". How can one get this thing working in VisualStudio and in Eclipse? Thanks. upd: clarification of the title. The name of t...

Do you use online or local help in Visual Studio / Are there downsides of one over the other?

Well I am sure that most people have seen the following: This time, I did not install the local MSDN so I do not have the option of Local help, however I usually always use the first option of look online anyway. I was wondering if there are any downsides to not installing MSDN? The only one I have found so far is that dynamic help ...

Installing Loadrunner

Well, it figures that Loadrunner is not easy to install. Apprently, we need: ➤ .NET Framework 3.5 ➤ Microsoft Data Access Components (MDAC) 2.8 SP1 (or later) ➤ Microsoft Windows Installer 3.1 ➤ Microsoft Core XML Services (MSXML) 6.0 ➤ Microsoft Visual C++ 2005 Redistributable Package (x86) ➤ Microsoft Visual C++ 2008 Redistributable ...

Organising project dependencies

I'm with a fairly large team and we are running into problem with the other libraries we depend on, and getting the same project files to work for every one. The problem is that many people have more than one version of the same library (eg the project users boost 1.36, and I use boost 1.39 for some of my other stuff), and every develop...

Should a Visual Studio project be contained in more than one solution?

Note: This is for a shop that works in C++, C++/CLI, and C# with some products being delivered as a combination of all three. We currently have a rule that a project should have one and only one containing solution. The rule was originally instated because the source control plug-in for Visual Studio was unable to cope with projects tha...

SQL CE unspecified error

Hello, I did a project with MS SQL Server CE that when installed in the 'costumer' machine just raises an unspecified excpetion. Did some research and looks like I did everything mentioned. The dev env has sql compact 3.5 installed and sql tools for vs 2005. Using dotNet 3.5. But to make it run in de dev machine I need to add the sqlces...

Proving that replacing hardware will improve developer performance...

Hi guys Now the machines we are forced to use are 2GB Ram, Intel Core 2 Duo E6850 @ 3GHz CPU... The policy within the company is that everyone has the same computer no matter what and that they are on a 3 year refresh cycle... Meaning I will have this machine for the next 2 years... :S We have been complaining like crazy but they said...

WPF ListBox - Display properties of the ItemSource

I am new to WPF. I have a ListBox that has its ItemSource set to a instance of WorkItemCollection. (A collection of WorkItem objects.) When the list is displayed it only displays the type of each object (Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem). Is there a way to make the list display WorkItem.Title? ...