visual-studio

Visual Studio color theme

What Visual Studio color theme do you use? Or just the default? Also see: What color scheme do you use for programming? ...

Alternatives to Visual Sourcesafe that integrate with Visual Studio

I am interested in dropping Visual Sourcesafe in favor of a version control application that offers branching. Sourcesafe's integration into Visual Studio makes checkins/outs a breeze. Can anyone suggest some other programs that offer the same functionality? I would prefer open source but it is not a requirement. ...

Visual Studio open files question

Is it possible to open a project in Visual Studio 2008 without opening all the files that were previously opened last time I had the project open. I have a habit of keeping many files open as I am working on them, so next time I open the project, it (very slowly) loads up a bunch of files into the editor that I may not even need open. I...

C# Include Derived Control in Toolbox

This is in reference to my other question Auto Clearing Textbox. If I choose to derive a new TextBox control from TextBox instead of implement a user control just containing my Textbox, how would I include that in the toolbox. ...

Good refactoring support for C++

The Visual Studio refactoring support for C# is quite good nowadays (though not half as good as some Java IDE's I've seen already) but I'm really missing C++ support. I have seen Refactor! and am currently trying it out, but maybe one of you guys know a better tool or plugin? I've been working with Visual Assist X now for a week or tw...

How do you configure VS2008 to only open one webserver in a solution with multiple projects?

Starting with 2005, VS started this behavior of when starting debugging session it spawns up a webserver for every project in a solution. I have a solution with 15 projects so it takes a while and is a waste of resources. Is there a way to configure it differently besides just using IIS? ...

VS.NET Application Diagrams

Have you used VS.NET Architect Edition's Application and System diagrams to start designing a solution? If so, did you find it useful? Did the "automatic implementation" feature worked ok? ...

Validation Patterns for Custom XML Documents

I have a web application that generates a medium sized XML dataset to be consumed by a third party. I thought it would be a good idea to provide some form of schema document for the XML that I generate so I pasted the XML into Visual Studio and got it to generate an XSD. The annoying thing is that my XML doesn't validate to the XSD that ...

Error viewing csproj property pages in VisualStudio2005

When I goto view the property page for my CSharp test application I get the following error. "An error occurred trying to load the page. COM object that has been seperated from its underlying RCW cannot be used." The only thing that seems to fix it is rebooting my PC! ...

.net solution subversion best practices?

There are so many examples of how to set up your dotnet projects but none seemed to fit our situation. We have one solution with multiple applications, multiple dependencies. We're on SourceSafe currently and are planning to move to subversion but are finding it difficult to organize our source the right way. Example solution App1 ...

AnkhSVN Cannot Connect Due to Proxy

Alright, this might be a bit of a long shot, but I have having problems getting AnkhSVN to connect from Visual Studio 2005 to an external SVN server. There is a network proxy in the way, but I can't seem to find a way in AnkhSVN to configure the proxy and doesn't seem to be detecting the Internet Explorer proxy configuration. Is there an...

Best way to bind Windows Forms properties to ApplicationSettings in C#?

In a desktop application needing some serious refactoring, I have several chunks of code that look like this: private void LoadSettings() { WindowState = Properties.Settings.Default.WindowState; Location = Properties.Settings.Default.WindowLocation; ... } private void SaveSettings() { Properties.Settings.Default.WindowS...

Why can't you bind the Size of a windows form to ApplicationSettings?

Update: Solved, with code I got it working, see my answer below for the code... Original Post As Tundey pointed out in his answer to my last question, you can bind nearly everything about a windows forms control to ApplicationSettings pretty effortlessly. So is there really no way to do this with form Size? This tutorial says you need...

What is the biggest VS "solution" you've ever seen?

I once worked for a bank, and the solution contained 40 projects. It was .NET 1.1 and took forever to compile. ...

What is the best way to go from Java/C# to C++?

At my university most of my classes have been in Java. I have also recently learned C# (and the Visual Studio environment) at a summer internship. Now I'm taking an Intro to Computer Graphics class and the grad student teaching the class prefers us to use C++ to access the OpenGL bindings via GLUT. Does anyone have any good resources ...

How do I unregister COM dlls initially added with RegSvr32 when the /u arg doesn't work?

Right, initially ran: c:\regsvr32 Amazing.dll then, (accidentally - I might add) I must have run it again, and (indeed) again when new versions of 'Amazing.dll' were released. Yes - I know now I should've run: c:\regsvr32 /u Amazing.dll beforehand - but hey! I forgot. To cut to the chase, when add the COM reference in VS, I can see...

Why doesn't 'shell' work in VBscript in VS6?

In a macro for Visual Studio 6, I wanted to run an external program, so I typed: shell("p4 open " + ActiveDocument.FullName) Which gave me a type mismatch runtime error. What I ended up having to type was this: Dim wshShell Set wshShell = CreateObject("WScript.Shell") strResult = wshShell.Run("p4 open " + ActiveDocument.FullName) W...

What's the best way to manage a classic asp front-end using Visual Studio 2008?

I support a third party system that uses COM, classic ASP, and SQL Server. Our company has gone to using TFS as our source control provider - which pushes things through Visual Studio. So, what's the best way to get a classic asp front-end into Visual Studio? ...

Give me awesome Visual Studio keyboard short cuts!

I know a few that I like. ALT+SHIFT+F10 then ENTER which automatically adds the "using" at the top if i'm referencing an object that I haven't put the namespace in for yet. CTRL + + or CTRL + - Which moves you back and forward to which file and method you are/were looking at which is very handy when used in combination with "Go To Def...

Changing ctrl+tab behavior for moving between document in Visual Studio

Is it possible to change how ctrl+tab and shift+ctrl+tab work in Visual Studio? I have disabled the popup navigator window because I only want to switch between items in the tab control. My problem is the inconsistency of what switching to the next and previous document do. Every other program that uses a tab control for open document ...