visual-studio

How to surround a code block with a using statement in ReSharper?

I'm watching Stephen A Bohlen's excellent Summer of NHibernate series, and have been watching him interact with CodeRush. I've recently installed ReSharper (I'm a ReSharper newbie), and I'm trying to find some of the ReSharper productivity equivalents that Stephen is demonstrating (tangentially) with CodeRush. As an example, he demonst...

How do I pipe output when debugging in Visual Studio?

For example, if I wanted to do it from the command line I would use "a.exe > out.txt". Is it possible to do something similar in Visual Studio when I debug (F5)? ...

How can I enable Emacs key bindings in Microsoft Visual C# 2008 Express Edition?

How can I enable Emacs key bindings in Microsoft Visual C# 2008 Express Edition? ...

How can I make some items in a ListBox bold?

In Visual c# Express Edition, is it possible to make some (but not all) items in a ListBox bold? I can't find any sort of option for this in the API. ...

Advanced Windows Application UI (MDI Tabbed Group)

I would like to be able to create an MDI UI layout that extends the behavior of MDI Tabbed Groups in the following way. Within a pane for a split tabbed group, I'd like to create a nested tab group with the opposite directional alignment. For instance, given a horizontally split top level, I would like to create a vertically split tab ...

MRU list in Visual studio is missing

A couple of months ago, the MRU list in Visual Studio stopped working. Neither the File menu or the start page shows any recently opened projects or solutions. I honestly have no clue what I did to cause this, but perhaps someone who knows more about the murky depths of VS might be able to hazard a guess at what caused it to disappear, ...

How to free up a key combination in visual studio?

I want to assign a hotkey to a function, but the keys are already used in some other functions' combination. How can I easely remove this hotkey from all these entries so I free it up and am able to asign it to the function I want? ...

Why does Visual Studio launch multiple WebDevs when I debug?

I have a Visual Studio 2008 solution with several projects in it - some of which are web applications / sites. Whenever I go "Debug > Start new instance" for a specific web application and VS launches the ASP.net Development Server (WebDev.WebServer.EXE) for that application, VS also launches 3 additional such processes - one for each ...

How to reduce linkage time for large project written in native Visual C++ ?

I am working with a large bunch of sources written in Visual C++. The target is dll library. Linkage time consumes several minutes. How this time can be reduced? Library depends on other dlls and libs, which are in the same solution. The first thing which can be done is to split source into several projects, but it is a time consuming...

Visual Studio Performance Choice - ESXi or Vista?

Following on from my earlier question, I have today ordered a 300GB VelociRaptor and 8GB of RAM for my home development rig (ASUS P5N-E with an E6600 chip). I want it to be fast in Visual Studio and flexible as well. I looking at either installing ESXi and then developing in Vista64 running on top of that, or I can install Vista64 wi...

Creating a Serial Port in code in VB.net

Hi, I am trying to create a serial port in VB.net using code only. Because I am creating a class library I cannot use the built-in component. I have tried instantiating a new SeialPort() object, but that does not seem to be enough. I'm sure there is something simple I am missing and any help would be greatly appreciated! Thanks! P.S. ...

How do you structure your source code?

(I'm asking this with Visual Studio Web Applications in mind, but am interested in more high-concept answers) Recent topic of conversation in my life with colleagues and friends has been how best to structure source files within a project. Not a source-control question or a development-environment question per se, I'm more interested in...

Is there a way to conditionally run Visual Studio Post Build Steps

What we are looking for is: while compiling the same configuration, say Release|Win32, is there a way to only do the postbuild steps sometimes. Like, if I am on a dev machine do all the post-build steps or if I am on a build server then don't do them. Or is the only way to accomplish this is by implementing a new configuration? Commente...

Project Types in ASP.NET

How do I create a Web Application Project in VS 2008? How is it different from a "WebSite" project? ...

What are the more advanced rules needed for your code to become CLS-complaint?

Here is a specific example which is not CLS-complaint according to VS.NET 2005. Public Interface IDbId Function GetNativeObject() As Object Function Equals(ByVal compObj As IDbId) As Boolean Function CompareTo(ByVal compObj As IDbId) As Integer Function ToString() As String End Interface This is an interface I implement with cla...

General Help on Visual Studio using Common Controls

I know this sounds very basic but I just started with visual studio and I am looking for instructions on the basic control functions. In general, what the different options do. I am just trying to get familiar with some of the functions and I am not completely understanding how to manipulate the data. For example, how to trigger infor...

why are my visual studio .obj files are massive in size compared to the output .exe ?

Hi, As a background, I am a developer of an opensource project, a c++ library called openframeworks, that is a wrapper for different libraries, like opengl, quicktime, freeImage, etc. In the next release, we've added a c++ library called POCO, which is similar to boost in some ways in that it's an alternative for java foundation libra...

Check to see if Visual Studio can load an assembly

I have some user controls that are going to get added into SharePoint through SmartPart. I'm testing on my local machine, but I'm planning on using the SharePoint security. I was wondering if there was a way I could to a quick test to see if the Microsoft.SharePoint assembly can actually get loaded so I can continue to test on my machi...

Visual Studio 2008 - jump to line number shortcut

I can go to a specific line number by double clicking in the status bar in Visual Studio. Is there a keyboard shortcut that does the same thing? ...

How to use dependencies of C++ libs in Visual Studio regarding the header path

We have several C++ libs that are used in applications and so many dependencies occur. Example problem: Lets say we have an application AppA that uses libB and libC. libC uses libD. Each lib is a static library project, all libs are grouped in a solution and the dependencies are given to Visual Studio, so all libraries and the appli...